hedgewars/SDLh.pas
changeset 11500 3a4026fe7c18
parent 11499 9c5d9993b14b
child 11518 02a13be714d2
equal deleted inserted replaced
11499:9c5d9993b14b 11500:3a4026fe7c18
    86     //SDL_INIT_EVERYTHING                // unsafe, init subsystems one at a time
    86     //SDL_INIT_EVERYTHING                // unsafe, init subsystems one at a time
    87 
    87 
    88     SDL_ALLEVENTS        = $FFFFFFFF;    // dummy event type to prevent stack corruption
    88     SDL_ALLEVENTS        = $FFFFFFFF;    // dummy event type to prevent stack corruption
    89     SDL_APPINPUTFOCUS    = $02;
    89     SDL_APPINPUTFOCUS    = $02;
    90 
    90 
    91     // audio formats
    91     // (some) audio formats from SDL_audio.h
    92     AUDIO_S16LSB         = $8010; // Signed 16-bit samples, in little-endian byte order
    92     AUDIO_S16LSB         = $8010; // Signed 16-bit samples, in little-endian byte order
       
    93     AUDIO_S16MSB         = $9010; // Signed 16-bit samples, in big-endian byte order
       
    94     AUDIO_S16SYS         = {$IFDEF ENDIAN_LITTLE}AUDIO_S16LSB{$ELSE}AUDIO_S16MSB{$ENDIF};
       
    95 
       
    96     // default audio format from SDL_mixer.h
       
    97     MIX_DEFAULT_FORMAT   = AUDIO_S16SYS;
    93 
    98 
    94     SDL_BUTTON_LEFT      = 1;
    99     SDL_BUTTON_LEFT      = 1;
    95     SDL_BUTTON_MIDDLE    = 2;
   100     SDL_BUTTON_MIDDLE    = 2;
    96     SDL_BUTTON_RIGHT     = 3;
   101     SDL_BUTTON_RIGHT     = 3;
    97     SDL_BUTTON_X1        = 4;
   102     SDL_BUTTON_X1        = 4;