User Tools

Site Tools


en:tutorials:input:keyboard_inputs

Keyboard Inputs

There have been many tutorials and examples covered already on using the keyboard for input. These are listed here for your convenience:

Config

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/input/keyboard_inputs.txt · Last modified: 2020/08/20 04:54 (4 years ago) by sausage