254 lines
9.3 KiB
Plaintext
254 lines
9.3 KiB
Plaintext
|
|
module sdl3::sdl;
|
||
|
|
|
||
|
|
typedef Scancode = CInt;
|
||
|
|
|
||
|
|
const Scancode SCANCODE_UNKNOWN = 0;
|
||
|
|
const Scancode SCANCODE_A = 4;
|
||
|
|
const Scancode SCANCODE_B = 5;
|
||
|
|
const Scancode SCANCODE_C = 6;
|
||
|
|
const Scancode SCANCODE_D = 7;
|
||
|
|
const Scancode SCANCODE_E = 8;
|
||
|
|
const Scancode SCANCODE_F = 9;
|
||
|
|
const Scancode SCANCODE_G = 10;
|
||
|
|
const Scancode SCANCODE_H = 11;
|
||
|
|
const Scancode SCANCODE_I = 12;
|
||
|
|
const Scancode SCANCODE_J = 13;
|
||
|
|
const Scancode SCANCODE_K = 14;
|
||
|
|
const Scancode SCANCODE_L = 15;
|
||
|
|
const Scancode SCANCODE_M = 16;
|
||
|
|
const Scancode SCANCODE_N = 17;
|
||
|
|
const Scancode SCANCODE_O = 18;
|
||
|
|
const Scancode SCANCODE_P = 19;
|
||
|
|
const Scancode SCANCODE_Q = 20;
|
||
|
|
const Scancode SCANCODE_R = 21;
|
||
|
|
const Scancode SCANCODE_S = 22;
|
||
|
|
const Scancode SCANCODE_T = 23;
|
||
|
|
const Scancode SCANCODE_U = 24;
|
||
|
|
const Scancode SCANCODE_V = 25;
|
||
|
|
const Scancode SCANCODE_W = 26;
|
||
|
|
const Scancode SCANCODE_X = 27;
|
||
|
|
const Scancode SCANCODE_Y = 28;
|
||
|
|
const Scancode SCANCODE_Z = 29;
|
||
|
|
const Scancode SCANCODE_1 = 30;
|
||
|
|
const Scancode SCANCODE_2 = 31;
|
||
|
|
const Scancode SCANCODE_3 = 32;
|
||
|
|
const Scancode SCANCODE_4 = 33;
|
||
|
|
const Scancode SCANCODE_5 = 34;
|
||
|
|
const Scancode SCANCODE_6 = 35;
|
||
|
|
const Scancode SCANCODE_7 = 36;
|
||
|
|
const Scancode SCANCODE_8 = 37;
|
||
|
|
const Scancode SCANCODE_9 = 38;
|
||
|
|
const Scancode SCANCODE_0 = 39;
|
||
|
|
const Scancode SCANCODE_RETURN = 40;
|
||
|
|
const Scancode SCANCODE_ESCAPE = 41;
|
||
|
|
const Scancode SCANCODE_BACKSPACE = 42;
|
||
|
|
const Scancode SCANCODE_TAB = 43;
|
||
|
|
const Scancode SCANCODE_SPACE = 44;
|
||
|
|
const Scancode SCANCODE_MINUS = 45;
|
||
|
|
const Scancode SCANCODE_EQUALS = 46;
|
||
|
|
const Scancode SCANCODE_LEFTBRACKET = 47;
|
||
|
|
const Scancode SCANCODE_RIGHTBRACKET = 48;
|
||
|
|
const Scancode SCANCODE_BACKSLASH = 49;
|
||
|
|
const Scancode SCANCODE_NONUSHASH = 50;
|
||
|
|
const Scancode SCANCODE_SEMICOLON = 51;
|
||
|
|
const Scancode SCANCODE_APOSTROPHE = 52;
|
||
|
|
const Scancode SCANCODE_GRAVE = 53;
|
||
|
|
const Scancode SCANCODE_COMMA = 54;
|
||
|
|
const Scancode SCANCODE_PERIOD = 55;
|
||
|
|
const Scancode SCANCODE_SLASH = 56;
|
||
|
|
const Scancode SCANCODE_CAPSLOCK = 57;
|
||
|
|
const Scancode SCANCODE_F1 = 58;
|
||
|
|
const Scancode SCANCODE_F2 = 59;
|
||
|
|
const Scancode SCANCODE_F3 = 60;
|
||
|
|
const Scancode SCANCODE_F4 = 61;
|
||
|
|
const Scancode SCANCODE_F5 = 62;
|
||
|
|
const Scancode SCANCODE_F6 = 63;
|
||
|
|
const Scancode SCANCODE_F7 = 64;
|
||
|
|
const Scancode SCANCODE_F8 = 65;
|
||
|
|
const Scancode SCANCODE_F9 = 66;
|
||
|
|
const Scancode SCANCODE_F10 = 67;
|
||
|
|
const Scancode SCANCODE_F11 = 68;
|
||
|
|
const Scancode SCANCODE_F12 = 69;
|
||
|
|
const Scancode SCANCODE_PRINTSCREEN = 70;
|
||
|
|
const Scancode SCANCODE_SCROLLLOCK = 71;
|
||
|
|
const Scancode SCANCODE_PAUSE = 72;
|
||
|
|
const Scancode SCANCODE_INSERT = 73;
|
||
|
|
const Scancode SCANCODE_HOME = 74;
|
||
|
|
const Scancode SCANCODE_PAGEUP = 75;
|
||
|
|
const Scancode SCANCODE_DELETE = 76;
|
||
|
|
const Scancode SCANCODE_END = 77;
|
||
|
|
const Scancode SCANCODE_PAGEDOWN = 78;
|
||
|
|
const Scancode SCANCODE_RIGHT = 79;
|
||
|
|
const Scancode SCANCODE_LEFT = 80;
|
||
|
|
const Scancode SCANCODE_DOWN = 81;
|
||
|
|
const Scancode SCANCODE_UP = 82;
|
||
|
|
const Scancode SCANCODE_NUMLOCKCLEAR = 83;
|
||
|
|
const Scancode SCANCODE_KP_DIVIDE = 84;
|
||
|
|
const Scancode SCANCODE_KP_MULTIPLY = 85;
|
||
|
|
const Scancode SCANCODE_KP_MINUS = 86;
|
||
|
|
const Scancode SCANCODE_KP_PLUS = 87;
|
||
|
|
const Scancode SCANCODE_KP_ENTER = 88;
|
||
|
|
const Scancode SCANCODE_KP_1 = 89;
|
||
|
|
const Scancode SCANCODE_KP_2 = 90;
|
||
|
|
const Scancode SCANCODE_KP_3 = 91;
|
||
|
|
const Scancode SCANCODE_KP_4 = 92;
|
||
|
|
const Scancode SCANCODE_KP_5 = 93;
|
||
|
|
const Scancode SCANCODE_KP_6 = 94;
|
||
|
|
const Scancode SCANCODE_KP_7 = 95;
|
||
|
|
const Scancode SCANCODE_KP_8 = 96;
|
||
|
|
const Scancode SCANCODE_KP_9 = 97;
|
||
|
|
const Scancode SCANCODE_KP_0 = 98;
|
||
|
|
const Scancode SCANCODE_KP_PERIOD = 99;
|
||
|
|
const Scancode SCANCODE_NONUSBACKSLASH = 100;
|
||
|
|
const Scancode SCANCODE_APPLICATION = 101;
|
||
|
|
const Scancode SCANCODE_POWER = 102;
|
||
|
|
const Scancode SCANCODE_KP_EQUALS = 103;
|
||
|
|
const Scancode SCANCODE_F13 = 104;
|
||
|
|
const Scancode SCANCODE_F14 = 105;
|
||
|
|
const Scancode SCANCODE_F15 = 106;
|
||
|
|
const Scancode SCANCODE_F16 = 107;
|
||
|
|
const Scancode SCANCODE_F17 = 108;
|
||
|
|
const Scancode SCANCODE_F18 = 109;
|
||
|
|
const Scancode SCANCODE_F19 = 110;
|
||
|
|
const Scancode SCANCODE_F20 = 111;
|
||
|
|
const Scancode SCANCODE_F21 = 112;
|
||
|
|
const Scancode SCANCODE_F22 = 113;
|
||
|
|
const Scancode SCANCODE_F23 = 114;
|
||
|
|
const Scancode SCANCODE_F24 = 115;
|
||
|
|
const Scancode SCANCODE_EXECUTE = 116;
|
||
|
|
const Scancode SCANCODE_HELP = 117;
|
||
|
|
const Scancode SCANCODE_MENU = 118;
|
||
|
|
const Scancode SCANCODE_SELECT = 119;
|
||
|
|
const Scancode SCANCODE_STOP = 120;
|
||
|
|
const Scancode SCANCODE_AGAIN = 121;
|
||
|
|
const Scancode SCANCODE_UNDO = 122;
|
||
|
|
const Scancode SCANCODE_CUT = 123;
|
||
|
|
const Scancode SCANCODE_COPY = 124;
|
||
|
|
const Scancode SCANCODE_PASTE = 125;
|
||
|
|
const Scancode SCANCODE_FIND = 126;
|
||
|
|
const Scancode SCANCODE_MUTE = 127;
|
||
|
|
const Scancode SCANCODE_VOLUMEUP = 128;
|
||
|
|
const Scancode SCANCODE_VOLUMEDOWN = 129;
|
||
|
|
const Scancode SCANCODE_KP_COMMA = 133;
|
||
|
|
const Scancode SCANCODE_KP_EQUALSAS400 = 134;
|
||
|
|
const Scancode SCANCODE_INTERNATIONAL1 = 135;
|
||
|
|
const Scancode SCANCODE_INTERNATIONAL2 = 136;
|
||
|
|
const Scancode SCANCODE_INTERNATIONAL3 = 137;
|
||
|
|
const Scancode SCANCODE_INTERNATIONAL4 = 138;
|
||
|
|
const Scancode SCANCODE_INTERNATIONAL5 = 139;
|
||
|
|
const Scancode SCANCODE_INTERNATIONAL6 = 140;
|
||
|
|
const Scancode SCANCODE_INTERNATIONAL7 = 141;
|
||
|
|
const Scancode SCANCODE_INTERNATIONAL8 = 142;
|
||
|
|
const Scancode SCANCODE_INTERNATIONAL9 = 143;
|
||
|
|
const Scancode SCANCODE_LANG1 = 144;
|
||
|
|
const Scancode SCANCODE_LANG2 = 145;
|
||
|
|
const Scancode SCANCODE_LANG3 = 146;
|
||
|
|
const Scancode SCANCODE_LANG4 = 147;
|
||
|
|
const Scancode SCANCODE_LANG5 = 148;
|
||
|
|
const Scancode SCANCODE_LANG6 = 149;
|
||
|
|
const Scancode SCANCODE_LANG7 = 150;
|
||
|
|
const Scancode SCANCODE_LANG8 = 151;
|
||
|
|
const Scancode SCANCODE_LANG9 = 152;
|
||
|
|
const Scancode SCANCODE_ALTERASE = 153;
|
||
|
|
const Scancode SCANCODE_SYSREQ = 154;
|
||
|
|
const Scancode SCANCODE_CANCEL = 155;
|
||
|
|
const Scancode SCANCODE_CLEAR = 156;
|
||
|
|
const Scancode SCANCODE_PRIOR = 157;
|
||
|
|
const Scancode SCANCODE_RETURN2 = 158;
|
||
|
|
const Scancode SCANCODE_SEPARATOR = 159;
|
||
|
|
const Scancode SCANCODE_OUT = 160;
|
||
|
|
const Scancode SCANCODE_OPER = 161;
|
||
|
|
const Scancode SCANCODE_CLEARAGAIN = 162;
|
||
|
|
const Scancode SCANCODE_CRSEL = 163;
|
||
|
|
const Scancode SCANCODE_EXSEL = 164;
|
||
|
|
const Scancode SCANCODE_KP_00 = 176;
|
||
|
|
const Scancode SCANCODE_KP_000 = 177;
|
||
|
|
const Scancode SCANCODE_THOUSANDSSEPARATOR = 178;
|
||
|
|
const Scancode SCANCODE_DECIMALSEPARATOR = 179;
|
||
|
|
const Scancode SCANCODE_CURRENCYUNIT = 180;
|
||
|
|
const Scancode SCANCODE_CURRENCYSUBUNIT = 181;
|
||
|
|
const Scancode SCANCODE_KP_LEFTPAREN = 182;
|
||
|
|
const Scancode SCANCODE_KP_RIGHTPAREN = 183;
|
||
|
|
const Scancode SCANCODE_KP_LEFTBRACE = 184;
|
||
|
|
const Scancode SCANCODE_KP_RIGHTBRACE = 185;
|
||
|
|
const Scancode SCANCODE_KP_TAB = 186;
|
||
|
|
const Scancode SCANCODE_KP_BACKSPACE = 187;
|
||
|
|
const Scancode SCANCODE_KP_A = 188;
|
||
|
|
const Scancode SCANCODE_KP_B = 189;
|
||
|
|
const Scancode SCANCODE_KP_C = 190;
|
||
|
|
const Scancode SCANCODE_KP_D = 191;
|
||
|
|
const Scancode SCANCODE_KP_E = 192;
|
||
|
|
const Scancode SCANCODE_KP_F = 193;
|
||
|
|
const Scancode SCANCODE_KP_XOR = 194;
|
||
|
|
const Scancode SCANCODE_KP_POWER = 195;
|
||
|
|
const Scancode SCANCODE_KP_PERCENT = 196;
|
||
|
|
const Scancode SCANCODE_KP_LESS = 197;
|
||
|
|
const Scancode SCANCODE_KP_GREATER = 198;
|
||
|
|
const Scancode SCANCODE_KP_AMPERSAND = 199;
|
||
|
|
const Scancode SCANCODE_KP_DBLAMPERSAND = 200;
|
||
|
|
const Scancode SCANCODE_KP_VERTICALBAR = 201;
|
||
|
|
const Scancode SCANCODE_KP_DBLVERTICALBAR = 202;
|
||
|
|
const Scancode SCANCODE_KP_COLON = 203;
|
||
|
|
const Scancode SCANCODE_KP_HASH = 204;
|
||
|
|
const Scancode SCANCODE_KP_SPACE = 205;
|
||
|
|
const Scancode SCANCODE_KP_AT = 206;
|
||
|
|
const Scancode SCANCODE_KP_EXCLAM = 207;
|
||
|
|
const Scancode SCANCODE_KP_MEMSTORE = 208;
|
||
|
|
const Scancode SCANCODE_KP_MEMRECALL = 209;
|
||
|
|
const Scancode SCANCODE_KP_MEMCLEAR = 210;
|
||
|
|
const Scancode SCANCODE_KP_MEMADD = 211;
|
||
|
|
const Scancode SCANCODE_KP_MEMSUBTRACT = 212;
|
||
|
|
const Scancode SCANCODE_KP_MEMMULTIPLY = 213;
|
||
|
|
const Scancode SCANCODE_KP_MEMDIVIDE = 214;
|
||
|
|
const Scancode SCANCODE_KP_PLUSMINUS = 215;
|
||
|
|
const Scancode SCANCODE_KP_CLEAR = 216;
|
||
|
|
const Scancode SCANCODE_KP_CLEARENTRY = 217;
|
||
|
|
const Scancode SCANCODE_KP_BINARY = 218;
|
||
|
|
const Scancode SCANCODE_KP_OCTAL = 219;
|
||
|
|
const Scancode SCANCODE_KP_DECIMAL = 220;
|
||
|
|
const Scancode SCANCODE_KP_HEXADECIMAL = 221;
|
||
|
|
const Scancode SCANCODE_LCTRL = 224;
|
||
|
|
const Scancode SCANCODE_LSHIFT = 225;
|
||
|
|
const Scancode SCANCODE_LALT = 226;
|
||
|
|
const Scancode SCANCODE_LGUI = 227;
|
||
|
|
const Scancode SCANCODE_RCTRL = 228;
|
||
|
|
const Scancode SCANCODE_RSHIFT = 229;
|
||
|
|
const Scancode SCANCODE_RALT = 230;
|
||
|
|
const Scancode SCANCODE_RGUI = 231;
|
||
|
|
const Scancode SCANCODE_MODE = 257;
|
||
|
|
const Scancode SCANCODE_SLEEP = 258;
|
||
|
|
const Scancode SCANCODE_WAKE = 259;
|
||
|
|
const Scancode SCANCODE_CHANNEL_INCREMENT = 260;
|
||
|
|
const Scancode SCANCODE_CHANNEL_DECREMENT = 261;
|
||
|
|
const Scancode SCANCODE_MEDIA_PLAY = 262;
|
||
|
|
const Scancode SCANCODE_MEDIA_PAUSE = 263;
|
||
|
|
const Scancode SCANCODE_MEDIA_RECORD = 264;
|
||
|
|
const Scancode SCANCODE_MEDIA_FAST_FORWARD = 265;
|
||
|
|
const Scancode SCANCODE_MEDIA_REWIND = 266;
|
||
|
|
const Scancode SCANCODE_MEDIA_NEXT_TRACK = 267;
|
||
|
|
const Scancode SCANCODE_MEDIA_PREVIOUS_TRACK = 268;
|
||
|
|
const Scancode SCANCODE_MEDIA_STOP = 269;
|
||
|
|
const Scancode SCANCODE_MEDIA_EJECT = 270;
|
||
|
|
const Scancode SCANCODE_MEDIA_PLAY_PAUSE = 271;
|
||
|
|
const Scancode SCANCODE_MEDIA_SELECT = 272;
|
||
|
|
const Scancode SCANCODE_AC_NEW = 273;
|
||
|
|
const Scancode SCANCODE_AC_OPEN = 274;
|
||
|
|
const Scancode SCANCODE_AC_CLOSE = 275;
|
||
|
|
const Scancode SCANCODE_AC_EXIT = 276;
|
||
|
|
const Scancode SCANCODE_AC_SAVE = 277;
|
||
|
|
const Scancode SCANCODE_AC_PRINT = 278;
|
||
|
|
const Scancode SCANCODE_AC_PROPERTIES = 279;
|
||
|
|
const Scancode SCANCODE_AC_SEARCH = 280;
|
||
|
|
const Scancode SCANCODE_AC_HOME = 281;
|
||
|
|
const Scancode SCANCODE_AC_BACK = 282;
|
||
|
|
const Scancode SCANCODE_AC_FORWARD = 283;
|
||
|
|
const Scancode SCANCODE_AC_STOP = 284;
|
||
|
|
const Scancode SCANCODE_AC_REFRESH = 285;
|
||
|
|
const Scancode SCANCODE_AC_BOOKMARKS = 286;
|
||
|
|
const Scancode SCANCODE_SOFTLEFT = 287;
|
||
|
|
const Scancode SCANCODE_SOFTRIGHT = 288;
|
||
|
|
const Scancode SCANCODE_CALL = 289;
|
||
|
|
const Scancode SCANCODE_ENDCALL = 290;
|
||
|
|
const Scancode SCANCODE_RESERVED = 400;
|
||
|
|
const Scancode SCANCODE_COUNT = 512;
|