Ascii Control Key Codes
These definitions define how various control keys are mapped to ASCII key codes. Not all key presses generate an ASCII value, so plugin code should be prepared to see null characters come from the keyboard...this usually represents a key stroke that has no equivalent ASCII, like a page-down press. Use virtual key codes to find these key strokes.
ASCII key codes take into account modifier keys; shift keys will affect capitals and punctuation; control key combinations may have no vaild ASCII and produce NULL. To detect control-key combinations, use virtual key codes, not ASCII keys.
XPLM_KEY_RETURN
define
#define XPLM_KEY_RETURN 13
XPLM_KEY_ESCAPE
define
#define XPLM_KEY_ESCAPE 27
XPLM_KEY_TAB
define
#define XPLM_KEY_TAB 9
XPLM_KEY_DELETE
define
#define XPLM_KEY_DELETE 8
XPLM_KEY_LEFT
define
#define XPLM_KEY_LEFT 28
XPLM_KEY_RIGHT
define
#define XPLM_KEY_RIGHT 29
XPLM_KEY_UP
define
#define XPLM_KEY_UP 30
XPLM_KEY_DOWN
define
#define XPLM_KEY_DOWN 31
XPLM_KEY_0
define
#define XPLM_KEY_0 48
XPLM_KEY_1
define
#define XPLM_KEY_1 49
XPLM_KEY_2
define
#define XPLM_KEY_2 50
XPLM_KEY_3
define
#define XPLM_KEY_3 51
XPLM_KEY_4
define
#define XPLM_KEY_4 52
XPLM_KEY_5
define
#define XPLM_KEY_5 53
XPLM_KEY_6
define
#define XPLM_KEY_6 54
XPLM_KEY_7
define
#define XPLM_KEY_7 55
XPLM_KEY_8
define
#define XPLM_KEY_8 56
XPLM_KEY_9
define
#define XPLM_KEY_9 57
XPLM_KEY_DECIMAL
define
#define XPLM_KEY_DECIMAL 46