114 lines
2.6 KiB
C
114 lines
2.6 KiB
C
#ifndef MONS_INPUT_H
|
|
#define MONS_INPUT_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
typedef enum mons_keycode {
|
|
MONS_KEY_A = 38,
|
|
MONS_KEY_B = 56,
|
|
MONS_KEY_C = 54,
|
|
MONS_KEY_D = 40,
|
|
MONS_KEY_E = 26,
|
|
MONS_KEY_F = 41,
|
|
MONS_KEY_G = 42,
|
|
MONS_KEY_H = 43,
|
|
MONS_KEY_I = 31,
|
|
MONS_KEY_J = 44,
|
|
MONS_KEY_K = 45,
|
|
MONS_KEY_L = 46,
|
|
MONS_KEY_M = 58,
|
|
MONS_KEY_N = 57,
|
|
MONS_KEY_O = 32,
|
|
MONS_KEY_P = 33,
|
|
MONS_KEY_Q = 24,
|
|
MONS_KEY_R = 27,
|
|
MONS_KEY_S = 39,
|
|
MONS_KEY_T = 28,
|
|
MONS_KEY_U = 30,
|
|
MONS_KEY_V = 55,
|
|
MONS_KEY_W = 25,
|
|
MONS_KEY_X = 53,
|
|
MONS_KEY_Y = 29,
|
|
MONS_KEY_Z = 52,
|
|
MONS_KEY_1 = 10,
|
|
MONS_KEY_2 = 11,
|
|
MONS_KEY_3 = 12,
|
|
MONS_KEY_4 = 13,
|
|
MONS_KEY_5 = 14,
|
|
MONS_KEY_6 = 15,
|
|
MONS_KEY_7 = 16,
|
|
MONS_KEY_8 = 17,
|
|
MONS_KEY_9 = 18,
|
|
MONS_KEY_0 = 19,
|
|
MONS_KEY_F1 = 67,
|
|
MONS_KEY_F2 = 68,
|
|
MONS_KEY_F3 = 69,
|
|
MONS_KEY_F4 = 70,
|
|
MONS_KEY_F5 = 71,
|
|
MONS_KEY_F6 = 72,
|
|
MONS_KEY_F7 = 73,
|
|
MONS_KEY_F8 = 74,
|
|
MONS_KEY_F9 = 75,
|
|
MONS_KEY_F10 = 76,
|
|
MONS_KEY_F11 = 95,
|
|
MONS_KEY_F12 = 96,
|
|
MONS_KEY_ESCAPE = 9,
|
|
MONS_KEY_UP = 111,
|
|
MONS_KEY_DOWN = 116,
|
|
MONS_KEY_LEFT = 113,
|
|
MONS_KEY_RIGHT = 114,
|
|
MONS_KEY_GRAVE = 49,
|
|
MONS_KEY_TAB = 23,
|
|
MONS_KEY_CAPSLOCK = 66,
|
|
MONS_KEY_LSHIFT = 50,
|
|
MONS_KEY_RSHIFT = 62,
|
|
MONS_KEY_LCTRL = 37,
|
|
MONS_KEY_RCTRL = 105,
|
|
MONS_KEY_LSUPER = 133,
|
|
MONS_KEY_RSUPER = 134,
|
|
MONS_KEY_LMETA = 64,
|
|
MONS_KEY_RMETA = 108,
|
|
MONS_KEY_SPACE = 65,
|
|
MONS_KEY_MENU = 135,
|
|
MONS_KEY_ENTER = 36,
|
|
MONS_KEY_BACKSLASH = 51,
|
|
MONS_KEY_SLASH = 61,
|
|
MONS_KEY_COMMA = 59,
|
|
MONS_KEY_PERIOD = 60,
|
|
MONS_KEY_SEMICOLON = 47,
|
|
MONS_KEY_QUOTE = 48,
|
|
MONS_KEY_LBRACKET = 34,
|
|
MONS_KEY_RBRACKET = 35,
|
|
MONS_KEY_MINUS = 20,
|
|
MONS_KEY_EQUAL = 21,
|
|
MONS_KEY_BACKSPACE = 22,
|
|
MONS_KEY_PRINT = 107,
|
|
MONS_KEY_SCROLLLOCK = 78,
|
|
MONS_KEY_PAUSE = 127,
|
|
MONS_KEY_INSERT = 118,
|
|
MONS_KEY_DELETE = 119,
|
|
MONS_KEY_HOME = 110,
|
|
MONS_KEY_END = 115,
|
|
MONS_KEY_PREV = 112,
|
|
MONS_KEY_NEXT = 117,
|
|
MONS_KEY_NUMLOCK = 77,
|
|
MONS_KEY_NUMPAD_1 = 87,
|
|
MONS_KEY_NUMPAD_2 = 88,
|
|
MONS_KEY_NUMPAD_3 = 89,
|
|
MONS_KEY_NUMPAD_4 = 83,
|
|
MONS_KEY_NUMPAD_5 = 84,
|
|
MONS_KEY_NUMPAD_6 = 85,
|
|
MONS_KEY_NUMPAD_7 = 79,
|
|
MONS_KEY_NUMPAD_8 = 80,
|
|
MONS_KEY_NUMPAD_9 = 81,
|
|
MONS_KEY_NUMPAD_0 = 90,
|
|
MONS_KEY_NUMPAD_DIV = 106,
|
|
MONS_KEY_NUMPAD_MUL = 63,
|
|
MONS_KEY_NUMPAD_MINUS = 82,
|
|
MONS_KEY_NUMPAD_PLUS = 86,
|
|
MONS_KEY_NUMPAD_DELETE = 91,
|
|
MONS_KEY_NUMPAD_ENTER = 104,
|
|
} mons_keycode;
|
|
|
|
#endif
|