hedgewars/SDLh.pas
changeset 6972 1c267028a071
parent 6917 4889c2b779b4
child 6974 2d3beb445d64
equal deleted inserted replaced
6971:b7b38e051b5f 6972:1c267028a071
   293     {* SDL_image *}
   293     {* SDL_image *}
   294     IMG_INIT_JPG = $00000001;
   294     IMG_INIT_JPG = $00000001;
   295     IMG_INIT_PNG = $00000002;
   295     IMG_INIT_PNG = $00000002;
   296     IMG_INIT_TIF = $00000004;
   296     IMG_INIT_TIF = $00000004;
   297 
   297 
   298     {* SDL SCANCODES see SDL/include/SDL_scancode.h *}
       
   299     SDL_SCANCODE_UNKNOWN = 0;
       
   300 
       
   301     SDL_SCANCODE_MOUSEL = 1;
       
   302     SDL_SCANCODE_MOUSEM = 2;
       
   303     SDL_SCANCODE_MOUSER = 3;
       
   304 
       
   305     SDL_SCANCODE_A = 4;
       
   306     SDL_SCANCODE_B = 5;
       
   307     SDL_SCANCODE_C = 6;
       
   308     SDL_SCANCODE_D = 7;
       
   309     SDL_SCANCODE_E = 8;
       
   310     SDL_SCANCODE_F = 9;
       
   311     SDL_SCANCODE_G = 10;
       
   312     SDL_SCANCODE_H = 11;
       
   313     SDL_SCANCODE_I = 12;
       
   314     SDL_SCANCODE_J = 13;
       
   315     SDL_SCANCODE_K = 14;
       
   316     SDL_SCANCODE_L = 15;
       
   317     SDL_SCANCODE_M = 16;
       
   318     SDL_SCANCODE_N = 17;
       
   319     SDL_SCANCODE_O = 18;
       
   320     SDL_SCANCODE_P = 19;
       
   321     SDL_SCANCODE_Q = 20;
       
   322     SDL_SCANCODE_R = 21;
       
   323     SDL_SCANCODE_S = 22;
       
   324     SDL_SCANCODE_T = 23;
       
   325     SDL_SCANCODE_U = 24;
       
   326     SDL_SCANCODE_V = 25;
       
   327     SDL_SCANCODE_W = 26;
       
   328     SDL_SCANCODE_X = 27;
       
   329     SDL_SCANCODE_Y = 28;
       
   330     SDL_SCANCODE_Z = 29;
       
   331 
       
   332     SDL_SCANCODE_1 = 30;
       
   333     SDL_SCANCODE_2 = 31;
       
   334     SDL_SCANCODE_3 = 32;
       
   335     SDL_SCANCODE_4 = 33;
       
   336     SDL_SCANCODE_5 = 34;
       
   337     SDL_SCANCODE_6 = 35;
       
   338     SDL_SCANCODE_7 = 36;
       
   339     SDL_SCANCODE_8 = 37;
       
   340     SDL_SCANCODE_9 = 38;
       
   341     SDL_SCANCODE_0 = 39;
       
   342 
       
   343     SDL_SCANCODE_RETURN = 40;
       
   344     SDL_SCANCODE_ESCAPE = 41;
       
   345     SDL_SCANCODE_BACKSPACE = 42;
       
   346     SDL_SCANCODE_TAB = 43;
       
   347     SDL_SCANCODE_SPACE = 44;
       
   348 
       
   349     SDL_SCANCODE_MINUS = 45;
       
   350     SDL_SCANCODE_EQUALS = 46;
       
   351     SDL_SCANCODE_LEFTBRACKET = 47;
       
   352     SDL_SCANCODE_RIGHTBRACKET = 48;
       
   353     SDL_SCANCODE_BACKSLASH = 49; 
       
   354     SDL_SCANCODE_NONUSHASH = 50;
       
   355     SDL_SCANCODE_SEMICOLON = 51;
       
   356     SDL_SCANCODE_APOSTROPHE = 52;
       
   357     SDL_SCANCODE_GRAVE = 53; 
       
   358     SDL_SCANCODE_COMMA = 54;
       
   359     SDL_SCANCODE_PERIOD = 55;
       
   360     SDL_SCANCODE_SLASH = 56;
       
   361 
       
   362     SDL_SCANCODE_CAPSLOCK = 57;
       
   363 
       
   364     SDL_SCANCODE_F1 = 58;
       
   365     SDL_SCANCODE_F2 = 59;
       
   366     SDL_SCANCODE_F3 = 60;
       
   367     SDL_SCANCODE_F4 = 61;
       
   368     SDL_SCANCODE_F5 = 62;
       
   369     SDL_SCANCODE_F6 = 63;
       
   370     SDL_SCANCODE_F7 = 64;
       
   371     SDL_SCANCODE_F8 = 65;
       
   372     SDL_SCANCODE_F9 = 66;
       
   373     SDL_SCANCODE_F10 = 67;
       
   374     SDL_SCANCODE_F11 = 68;
       
   375     SDL_SCANCODE_F12 = 69;
       
   376 
       
   377     SDL_SCANCODE_PRINTSCREEN = 70;
       
   378     SDL_SCANCODE_SCROLLLOCK = 71;
       
   379     SDL_SCANCODE_PAUSE = 72;
       
   380     SDL_SCANCODE_INSERT = 73; 
       
   381     SDL_SCANCODE_HOME = 74;
       
   382     SDL_SCANCODE_PAGEUP = 75;
       
   383     SDL_SCANCODE_DELETE = 76;
       
   384     SDL_SCANCODE_END = 77;
       
   385     SDL_SCANCODE_PAGEDOWN = 78;
       
   386     SDL_SCANCODE_RIGHT = 79;
       
   387     SDL_SCANCODE_LEFT = 80;
       
   388     SDL_SCANCODE_DOWN = 81;
       
   389     SDL_SCANCODE_UP = 82;
       
   390 
       
   391     SDL_SCANCODE_NUMLOCKCLEAR = 83; 
       
   392     SDL_SCANCODE_KP_DIVIDE = 84;
       
   393     SDL_SCANCODE_KP_MULTIPLY = 85;
       
   394     SDL_SCANCODE_KP_MINUS = 86;
       
   395     SDL_SCANCODE_KP_PLUS = 87;
       
   396     SDL_SCANCODE_KP_ENTER = 88;
       
   397     SDL_SCANCODE_KP_1 = 89;
       
   398     SDL_SCANCODE_KP_2 = 90;
       
   399     SDL_SCANCODE_KP_3 = 91;
       
   400     SDL_SCANCODE_KP_4 = 92;
       
   401     SDL_SCANCODE_KP_5 = 93;
       
   402     SDL_SCANCODE_KP_6 = 94;
       
   403     SDL_SCANCODE_KP_7 = 95;
       
   404     SDL_SCANCODE_KP_8 = 96;
       
   405     SDL_SCANCODE_KP_9 = 97;
       
   406     SDL_SCANCODE_KP_0 = 98;
       
   407     SDL_SCANCODE_KP_PERIOD = 99;
       
   408 
       
   409     SDL_SCANCODE_NONUSBACKSLASH = 100;
       
   410     SDL_SCANCODE_APPLICATION = 101; 
       
   411     SDL_SCANCODE_POWER = 102; 
       
   412     SDL_SCANCODE_KP_EQUALS = 103;
       
   413     SDL_SCANCODE_F13 = 104;
       
   414     SDL_SCANCODE_F14 = 105;
       
   415     SDL_SCANCODE_F15 = 106;
       
   416     SDL_SCANCODE_F16 = 107;
       
   417     SDL_SCANCODE_F17 = 108;
       
   418     SDL_SCANCODE_F18 = 109;
       
   419     SDL_SCANCODE_F19 = 110;
       
   420     SDL_SCANCODE_F20 = 111;
       
   421     SDL_SCANCODE_F21 = 112;
       
   422     SDL_SCANCODE_F22 = 113;
       
   423     SDL_SCANCODE_F23 = 114;
       
   424     SDL_SCANCODE_F24 = 115;
       
   425     SDL_SCANCODE_EXECUTE = 116;
       
   426     SDL_SCANCODE_HELP = 117;
       
   427     SDL_SCANCODE_MENU = 118;
       
   428     SDL_SCANCODE_SELECT = 119;
       
   429     SDL_SCANCODE_STOP = 120;
       
   430     SDL_SCANCODE_AGAIN = 121; 
       
   431     SDL_SCANCODE_UNDO = 122;
       
   432     SDL_SCANCODE_CUT = 123;
       
   433     SDL_SCANCODE_COPY = 124;
       
   434     SDL_SCANCODE_PASTE = 125;
       
   435     SDL_SCANCODE_FIND = 126;
       
   436     SDL_SCANCODE_MUTE = 127;
       
   437     SDL_SCANCODE_VOLUMEUP = 128;
       
   438     SDL_SCANCODE_VOLUMEDOWN = 129;
       
   439     SDL_SCANCODE_KP_COMMA = 133;
       
   440     SDL_SCANCODE_KP_EQUALSAS400 = 134;
       
   441 
       
   442     SDL_SCANCODE_INTERNATIONAL1 = 135; 
       
   443     SDL_SCANCODE_INTERNATIONAL2 = 136;
       
   444     SDL_SCANCODE_INTERNATIONAL3 = 137; 
       
   445     SDL_SCANCODE_INTERNATIONAL4 = 138;
       
   446     SDL_SCANCODE_INTERNATIONAL5 = 139;
       
   447     SDL_SCANCODE_INTERNATIONAL6 = 140;
       
   448     SDL_SCANCODE_INTERNATIONAL7 = 141;
       
   449     SDL_SCANCODE_INTERNATIONAL8 = 142;
       
   450     SDL_SCANCODE_INTERNATIONAL9 = 143;
       
   451     SDL_SCANCODE_LANG1 = 144;
       
   452     SDL_SCANCODE_LANG2 = 145;
       
   453     SDL_SCANCODE_LANG3 = 146;
       
   454     SDL_SCANCODE_LANG4 = 147;
       
   455     SDL_SCANCODE_LANG5 = 148;
       
   456     SDL_SCANCODE_LANG6 = 149;
       
   457     SDL_SCANCODE_LANG7 = 150;
       
   458     SDL_SCANCODE_LANG8 = 151;
       
   459     SDL_SCANCODE_LANG9 = 152;
       
   460 
       
   461     SDL_SCANCODE_ALTERASE = 153;
       
   462     SDL_SCANCODE_SYSREQ = 154;
       
   463     SDL_SCANCODE_CANCEL = 155;
       
   464     SDL_SCANCODE_CLEAR = 156;
       
   465     SDL_SCANCODE_PRIOR = 157;
       
   466     SDL_SCANCODE_RETURN2 = 158;
       
   467     SDL_SCANCODE_SEPARATOR = 159;
       
   468     SDL_SCANCODE_OUT = 160;
       
   469     SDL_SCANCODE_OPER = 161;
       
   470     SDL_SCANCODE_CLEARAGAIN = 162;
       
   471     SDL_SCANCODE_CRSEL = 163;
       
   472     SDL_SCANCODE_EXSEL = 164;
       
   473 
       
   474     SDL_SCANCODE_KP_00 = 176;
       
   475     SDL_SCANCODE_KP_000 = 177;
       
   476     SDL_SCANCODE_THOUSANDSSEPARATOR = 178;
       
   477     SDL_SCANCODE_DECIMALSEPARATOR = 179;
       
   478     SDL_SCANCODE_CURRENCYUNIT = 180;
       
   479     SDL_SCANCODE_CURRENCYSUBUNIT = 181;
       
   480     SDL_SCANCODE_KP_LEFTPAREN = 182;
       
   481     SDL_SCANCODE_KP_RIGHTPAREN = 183;
       
   482     SDL_SCANCODE_KP_LEFTBRACE = 184;
       
   483     SDL_SCANCODE_KP_RIGHTBRACE = 185;
       
   484     SDL_SCANCODE_KP_TAB = 186;
       
   485     SDL_SCANCODE_KP_BACKSPACE = 187;
       
   486     SDL_SCANCODE_KP_A = 188;
       
   487     SDL_SCANCODE_KP_B = 189;
       
   488     SDL_SCANCODE_KP_C = 190;
       
   489     SDL_SCANCODE_KP_D = 191;
       
   490     SDL_SCANCODE_KP_E = 192;
       
   491     SDL_SCANCODE_KP_F = 193;
       
   492     SDL_SCANCODE_KP_XOR = 194;
       
   493     SDL_SCANCODE_KP_POWER = 195;
       
   494     SDL_SCANCODE_KP_PERCENT = 196;
       
   495     SDL_SCANCODE_KP_LESS = 197;
       
   496     SDL_SCANCODE_KP_GREATER = 198;
       
   497     SDL_SCANCODE_KP_AMPERSAND = 199;
       
   498     SDL_SCANCODE_KP_DBLAMPERSAND = 200;
       
   499     SDL_SCANCODE_KP_VERTICALBAR = 201;
       
   500     SDL_SCANCODE_KP_DBLVERTICALBAR = 202;
       
   501     SDL_SCANCODE_KP_COLON = 203;
       
   502     SDL_SCANCODE_KP_HASH = 204;
       
   503     SDL_SCANCODE_KP_SPACE = 205;
       
   504     SDL_SCANCODE_KP_AT = 206;
       
   505     SDL_SCANCODE_KP_EXCLAM = 207;
       
   506     SDL_SCANCODE_KP_MEMSTORE = 208;
       
   507     SDL_SCANCODE_KP_MEMRECALL = 209;
       
   508     SDL_SCANCODE_KP_MEMCLEAR = 210;
       
   509     SDL_SCANCODE_KP_MEMADD = 211;
       
   510     SDL_SCANCODE_KP_MEMSUBTRACT = 212;
       
   511     SDL_SCANCODE_KP_MEMMULTIPLY = 213;
       
   512     SDL_SCANCODE_KP_MEMDIVIDE = 214;
       
   513     SDL_SCANCODE_KP_PLUSMINUS = 215;
       
   514     SDL_SCANCODE_KP_CLEAR = 216;
       
   515     SDL_SCANCODE_KP_CLEARENTRY = 217;
       
   516     SDL_SCANCODE_KP_BINARY = 218;
       
   517     SDL_SCANCODE_KP_OCTAL = 219;
       
   518     SDL_SCANCODE_KP_DECIMAL = 220;
       
   519     SDL_SCANCODE_KP_HEXADECIMAL = 221;
       
   520 
       
   521     SDL_SCANCODE_LCTRL = 224;
       
   522     SDL_SCANCODE_LSHIFT = 225;
       
   523     SDL_SCANCODE_LALT = 226;
       
   524     SDL_SCANCODE_LGUI = 227;
       
   525     SDL_SCANCODE_RCTRL = 228;
       
   526     SDL_SCANCODE_RSHIFT = 229;
       
   527     SDL_SCANCODE_RALT = 230;
       
   528     SDL_SCANCODE_RGUI = 231;
       
   529 
       
   530     SDL_SCANCODE_MODE = 257;
       
   531 
       
   532     SDL_SCANCODE_AUDIONEXT = 258;
       
   533     SDL_SCANCODE_AUDIOPREV = 259;
       
   534     SDL_SCANCODE_AUDIOSTOP = 260;
       
   535     SDL_SCANCODE_AUDIOPLAY = 261;
       
   536     SDL_SCANCODE_AUDIOMUTE = 262;
       
   537     SDL_SCANCODE_MEDIASELECT = 263;
       
   538     SDL_SCANCODE_WWW = 264;
       
   539     SDL_SCANCODE_MAIL = 265;
       
   540     SDL_SCANCODE_CALCULATOR = 266;
       
   541     SDL_SCANCODE_COMPUTER = 267;
       
   542     SDL_SCANCODE_AC_SEARCH = 268;
       
   543     SDL_SCANCODE_AC_HOME = 269;
       
   544     SDL_SCANCODE_AC_BACK = 270;
       
   545     SDL_SCANCODE_AC_FORWARD = 271;
       
   546     SDL_SCANCODE_AC_STOP = 272;
       
   547     SDL_SCANCODE_AC_REFRESH = 273;
       
   548     SDL_SCANCODE_AC_BOOKMARKS = 274;
       
   549     
       
   550     SDL_SCANCODE_BRIGHTNESSDOWN = 275;
       
   551     SDL_SCANCODE_BRIGHTNESSUP = 276;
       
   552     SDL_SCANCODE_DISPLAYSWITCH = 277;
       
   553     SDL_SCANCODE_KBDILLUMTOGGLE = 278;
       
   554     SDL_SCANCODE_KBDILLUMDOWN = 279;
       
   555     SDL_SCANCODE_KBDILLUMUP = 280;
       
   556     SDL_SCANCODE_EJECT = 281;
       
   557     SDL_SCANCODE_SLEEP = 282;
       
   558    
       
   559     SDL_SCANCODE_WHEELUP = 300;
       
   560     SDL_SCANCODE_WHEELDOWN = 301;
       
   561     SDL_SCANCODE_CONTROLLER = 310;
       
   562     SDL_NUM_SCANCODES = 512;
       
   563 
       
   564     {* SDL_EventMask type definition *}
       
   565 
   298 
   566 /////////////////////////////////////////////////////////////////
   299 /////////////////////////////////////////////////////////////////
   567 ///////////////////////  TYPE DEFINITIONS ///////////////////////
   300 ///////////////////////  TYPE DEFINITIONS ///////////////////////
   568 /////////////////////////////////////////////////////////////////
   301 /////////////////////////////////////////////////////////////////
   569 
   302