configurable keyboard/joystick inputs with blueprints
Is there a way to make controls configurable to the players using blueprints? I'm very worried with that because I can’t find any information about this anywhere.
asked Dec 29 '15 at 02:17 PM in Blueprint Scripting
you could make a data table that converts the Key's display name into an integer, and use that integer to access an index in an array of integers. the index represents the key pressed, while the value at that index represents the action you want to perform.
then you need to make a widget for the menu. when you spawn the widget, pass in the the player controller as a reference, so you can call functions that set the keys.
the CSV spreadsheet text would look like this:
then you can create a blueprint struct with a single integer named ActionID, and use that to import the CSV as a data table.
answered Dec 29 '15 at 04:59 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here