User Tools

Site Tools


Keyboard Inputs

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.

Getting a key display name

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.

en/tutorials/keyboard_inputs.txt · Last modified: 2018/09/10 12:25 (8 months ago) by sausage