Assets of The Season
Assets updates
Dynamic Input Switching

Dynamic Input Switching

Updated
2024-03-08
Free
Blueprints
Engine version
5.1
Download type
Complete Project
File size
21.8 MB
Registration required
Description

Switch UI elements in real-time with this library and BP set.

Complete Overhaul of the system. Icon Images are all stored inside a simple struct, and provide easy access to swap between Xbox One, Xbox Series, Playstation 4, Playstation 5, Switch Pro, Switch Joycon, and Steam Deck icons. Since the system is based on detecting keypresses rather than Input Actions, the system is fully compatible with Enhanced Input/UE 5.1

DynaKey Updates: I rebuilt the DynaKey widget to allow for adjusting the size of the icon image.

 

This asset is a library and player controller that allows you to automatically detect the input method being used by the player, and display the appropriate icons in your HUD and UI widgets. No ticks or timers required. You can also set up multiple Gamepad Styles, so the player can select the style of icon to display without the need to hardcode the logic into individual Widgets.

 

A Sample HUD is included to show how to use the new library functions inside a widget to create dynamically updating images.

All Gamepad icons are set inside a single struct for easy image management.

I recommend adding a setting into your Options Menu to swap between Icon sets.

Every blueprint is commented with detailed explanations of the functionality.

 

Integration into existing projects is simple! Just add to your project and parent your current player controller to the "CustomPlayerController" included in this pack. Then you can access all library functions from anywhere. You can also just use the included player controller as-is.

 

Update 1

Complete overhaul of how the library assigns the icon images.

 

Update 2

Added a new widget Blueprint called WB_DynaKey. Just add it to any widget and select which buttons to use with convenient dropdown menus!

 

Update 3

Overhauled the library functions to be more streamlined. Added new Size variable to WB_DynaKey for ease of use. Now you can specify the size of the icon generated without using a size box.

 

For any questions, issues, feedback, or suggestions, don't hesitate to email me at jmannmarketplace@gmail.com

Technical Details

Features:

  •  Update images and icons in real-time based on the player's detected input method.
  •  Everything you need is included in a single library (and 2 sets of enums)
  •  Fully commented for ease of use.
  • Enables switching HUD and UI icons between Keyboard/Mouse and Gamepad.
  • Enables switching between different Gamepad Icon Sets in-game in real-time.
  • Includes sample icon styles for Keyboard Keys, Xbox One, Xbox Series, Playstation 4, Playstation 5, Steam Deck, and Switch.
  • Icon Slate Brushes are set inside the library, so there's no need to hardcode any icons inside your widgets.
  • Simple Integration to existing projects.

 

Number of Blueprints: 4

Input: Keyboard and Mouse, Gamepad

Network Replicated: No

Supported Development Platforms:

Windows: Yes

Mac: Yes

 

Important/Additional Notes:

This asset does *not* automatically detect the type of gamepad being used by the player (ie. Xbox One Controller, DualShock 4 controller, etc.) Instead, it allows developers to quickly add multiple icon sets that the player can select during the game.

 

The included Icons are under Public Domain/CC0 license. But definitely check out Xelu's work over on OpenGameArt!

Comments
Comments is not yet
Add Comment
Please register
Other interesting assets