HGE Virtual Key Codes
HGE virtual-key codes are used with Input_GetKeyState,
Input_GetKey and other input functions to specify one of the keyboard keys or mouse buttons.
They are defined in hge.h header:
HGEK_LBUTTON | Left mouse button |
HGEK_RBUTTON | Right mouse button |
HGEK_MBUTTON | Middle mouse button (wheel button) |
|
HGEK_ESCAPE | ESCAPE key |
HGEK_BACKSPACE | BACKSPACE key |
HGEK_TAB | TAB key |
HGEK_ENTER | Any of the two ENTER keys |
HGEK_SPACE | SPACE key |
|
HGEK_SHIFT | Any of the two SHIFT keys |
HGEK_CTRL | Any of the two CTRL keys |
HGEK_ALT | Any of the two ALT keys |
|
HGEK_LWIN | Left WINDOWS key |
HGEK_RWIN | Right WINDOWS key |
HGEK_APPS | APPLICATIONS key |
|
HGEK_PAUSE | PAUSE key |
HGEK_CAPSLOCK | CAPS LOCK key |
HGEK_NUMLOCK | NUM LOCK key |
HGEK_SCROLLLOCK | SCROLL LOCK key |
|
HGEK_PGUP | PAGE UP key |
HGEK_PGDN | PAGE DOWN key |
HGEK_HOME | HOME key |
HGEK_END | END key |
HGEK_INSERT | INSERT key |
HGEK_DELETE | DELETE key |
|
HGEK_LEFT | LEFT ARROW key |
HGEK_UP | UP ARROW key |
HGEK_RIGHT | RIGHT ARROW key |
HGEK_DOWN | DOWN ARROW key |
|
HGEK_0 | Main keyboard '0' key |
HGEK_1 | Main keyboard '1' key |
HGEK_2 | Main keyboard '2' key |
HGEK_3 | Main keyboard '3' key |
HGEK_4 | Main keyboard '4' key |
HGEK_5 | Main keyboard '5' key |
HGEK_6 | Main keyboard '6' key |
HGEK_7 | Main keyboard '7' key |
HGEK_8 | Main keyboard '8' key |
HGEK_9 | Main keyboard '9' key |
|
HGEK_A | 'A' key |
HGEK_B | 'B' key |
HGEK_C | 'C' key |
HGEK_D | 'D' key |
HGEK_E | 'E' key |
HGEK_F | 'F' key |
HGEK_G | 'G' key |
HGEK_H | 'H' key |
HGEK_I | 'I' key |
HGEK_J | 'J' key |
HGEK_K | 'K' key |
HGEK_L | 'L' key |
HGEK_M | 'M' key |
HGEK_N | 'N' key |
HGEK_O | 'O' key |
HGEK_P | 'P' key |
HGEK_Q | 'Q' key |
HGEK_R | 'R' key |
HGEK_S | 'S' key |
HGEK_T | 'T' key |
HGEK_U | 'U' key |
HGEK_V | 'V' key |
HGEK_W | 'W' key |
HGEK_X | 'X' key |
HGEK_Y | 'Y' key |
HGEK_Z | 'Z' key |
|
HGEK_GRAVE | Grave accent (`) |
HGEK_MINUS | Main keyboard MINUS key (-) |
HGEK_EQUALS | Main keyboard EQUALS key (=) |
HGEK_BACKSLASH | BACK SLASH key (\) |
HGEK_LBRACKET | Left square bracket ([) |
HGEK_RBRACKET | Right square bracket (]) |
HGEK_SEMICOLON | Semicolon (;) |
HGEK_APOSTROPHE | Apostrophe (') |
HGEK_COMMA | Comma (,) |
HGEK_PERIOD | Main keyboard PERIOD key (.) |
HGEK_SLASH | Main keyboard SLASH key (/) |
|
HGEK_NUMPAD0 | Numeric keyboard '0' key |
HGEK_NUMPAD1 | Numeric keyboard '1' key |
HGEK_NUMPAD2 | Numeric keyboard '2' key |
HGEK_NUMPAD3 | Numeric keyboard '3' key |
HGEK_NUMPAD4 | Numeric keyboard '4' key |
HGEK_NUMPAD5 | Numeric keyboard '5' key |
HGEK_NUMPAD6 | Numeric keyboard '6' key |
HGEK_NUMPAD7 | Numeric keyboard '7' key |
HGEK_NUMPAD8 | Numeric keyboard '8' key |
HGEK_NUMPAD9 | Numeric keyboard '9' key |
|
HGEK_MULTIPLY | Numeric keyboard MULTIPLY key (*) |
HGEK_DIVIDE | Numeric keyboard DIVIDE key (/) |
HGEK_ADD | Numeric keyboard ADD key (+) |
HGEK_SUBTRACT | Numeric keyboard SUBTRACT key (-) |
HGEK_DECIMAL | Numeric keyboard DECIMAL key (.) |
|
HGEK_F1 | F1 key |
HGEK_F2 | F2 key |
HGEK_F3 | F3 key |
HGEK_F4 | F4 key |
HGEK_F5 | F5 key |
HGEK_F6 | F6 key |
HGEK_F7 | F7 key |
HGEK_F8 | F8 key |
HGEK_F9 | F9 key |
HGEK_F10 | F10 key |
HGEK_F11 | F11 key |
HGEK_F12 | F12 key |
Requirements
Header: hge.h
See also
Input_GetKeyName,
Input_GetKeyState,
Input_GetKey,
Input_GetEvent
|