There have been many tutorials and examples covered already on using the keyboard for input. These are listed here for your convenience:
The full list of keys that can be used in your config is listed here.
You can retrieve the display name for a key using orxKeyboard_GetKeyDisplayName
. This is very handy for pulling in your defined key inputs from your config, and displaying them in your UI. For example:
const orxSTRING keyName = orxKeyboard_GetKeyDisplayName(orxKEYBOARD_KEY_SPACE);
In the above code, if orxKEYBOARD_KEY_SPACE
is passed, the resulting string is SPACE
.