User Tools

Site Tools


This is an old revision of the document!

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.1536582302.txt.gz · Last modified: 2018/09/10 15:25 (21 months ago) (external edit)