Platform SDK: DirectX |
Keyboard device constants, which are members of the CONST_DIKEYFLAGS enumeration, represent offsets within a keyboard device's data packet, a 256-byte array. The data at a given offset is associated with a keyboard key.
The standard keyboard device constants are the following (in ascending order):
Constant | Note |
---|---|
DIK_ESCAPE | |
DIK_1 | On main keyboard |
DIK_2 | On main keyboard |
DIK_3 | On main keyboard |
DIK_4 | On main keyboard |
DIK_5 | On main keyboard |
DIK_6 | On main keyboard |
DIK_7 | On main keyboard |
DIK_8 | On main keyboard |
DIK_9 | On main keyboard |
DIK_0 | On main keyboard |
DIK_MINUS | On main keyboard |
DIK_EQUALS | On main keyboard |
DIK_BACK | BACKSPACE |
DIK_TAB | |
DIK_Q | |
DIK_W | |
DIK_E | |
DIK_R | |
DIK_T | |
DIK_Y | |
DIK_U | |
DIK_I | |
DIK_O | |
DIK_P | |
DIK_LBRACKET | [ |
DIK_RBRACKET | ] |
DIK_RETURN | ENTER on main keyboard |
DIK_LCONTROL | Left CTRL |
DIK_A | |
DIK_S | |
DIK_D | |
DIK_F | |
DIK_G | |
DIK_H | |
DIK_J | |
DIK_K | |
DIK_L | |
DIK_SEMICOLON | |
DIK_APOSTROPHE | |
DIK_GRAVE | Grave accent (`) |
DIK_LSHIFT | Left SHIFT |
DIK_BACKSLASH | |
DIK_Z | |
DIK_X | |
DIK_C | |
DIK_V | |
DIK_B | |
DIK_N | |
DIK_M | |
DIK_COMMA | |
DIK_PERIOD | On main keyboard |
DIK_SLASH | Forward slash (/)on main keyboard |
DIK_RSHIFT | Right SHIFT |
DIK_MULTIPLY | Asterisk on numeric keypad |
DIK_LMENU | Left ALT |
DIK_SPACE | Spacebar |
DIK_CAPITAL | CAPS LOCK |
DIK_F1 | |
DIK_F2 | |
DIK_F3 | |
DIK_F4 | |
DIK_F5 | |
DIK_F6 | |
DIK_F7 | |
DIK_F8 | |
DIK_F9 | |
DIK_F10 | |
DIK_NUMLOCK | |
DIK_SCROLL | SCROLL LOCK |
DIK_NUMPAD7 | |
DIK_NUMPAD8 | |
DIK_NUMPAD9 | |
DIK_SUBTRACT | Hyphen (minus sign) on numeric keypad |
DIK_NUMPAD4 | |
DIK_NUMPAD5 | |
DIK_NUMPAD6 | |
DIK_ADD | Plus sign on numeric keypad |
DIK_NUMPAD1 | |
DIK_NUMPAD2 | |
DIK_NUMPAD3 | |
DIK_NUMPAD0 | |
DIK_DECIMAL | Period (decimal point) on numeric keypad |
DIK_F11 | |
DIK_F12 | |
DIK_F13 | |
DIK_F14 | |
DIK_F15 | |
DIK_KANA | On Japanese keyboard |
DIK_CONVERT | On Japanese keyboard |
DIK_NOCONVERT | On Japanese keyboard |
DIK_YEN | On Japanese keyboard |
DIK_NUMPADEQUALS | On numeric keypad (NEC PC98) |
DIK_CIRCUMFLEX | On Japanese keyboard |
DIK_AT | On Japanese keyboard |
DIK_COLON | On Japanese keyboard |
DIK_UNDERLINE | On Japanese keyboard |
DIK_KANJI | On Japanese keyboard |
DIK_STOP | On Japanese keyboard |
DIK_AX | On Japanese keyboard |
DIK_UNLABELED | On Japanese keyboard |
DIK_NUMPADENTER | |
DIK_RCONTROL | Right CTRL key |
DIK_NUMPADCOMMA | Comma on NEC PC98 numeric keypad |
DIK_DIVIDE | Forward slash (/)on numeric keypad |
DIK_SYSRQ | |
DIK_RMENU | Right ALT |
DIK_HOME | |
DIK_UP | Up arrow |
DIK_PRIOR | PAGE UP |
DIK_LEFT | Left arrow |
DIK_RIGHT | Right arrow |
DIK_END | |
DIK_DOWN | Down arrow |
DIK_NEXT | PAGE DOWN |
DIK_INSERT | |
DIK_DELETE | |
DIK_LWIN | Left Windows key |
DIK_RWIN | Right Windows key |
DIK_APPS | Application key |
DIK_PAUSE |
For information on Japanese keyboards, see DirectInput and Japanese Keyboards.