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