Changeset 1037


Ignore:
Timestamp:
Oct 29, 2011, 9:53:10 PM (9 years ago)
Author:
sam
Message:

core: port everything to SDL 1.3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/input.cpp

    r1035 r1037  
    6464#if defined USE_SDL
    6565    /* Simulate a joystick using the keyboard. This SDL call is free. */
     66#if SDL_MAJOR_VERSION == 1 && SDL_MINOR_VERSION >= 3
     67    Uint8 *keystate = SDL_GetKeyboardState(NULL);
     68#else
    6669    Uint8 *keystate = SDL_GetKeyState(NULL);
     70#endif
    6771    int left = keystate[SDLK_d] - (keystate[SDLK_a] | keystate[SDLK_q]);
    6872    int up = (keystate[SDLK_w] | keystate[SDLK_z]) - keystate[SDLK_s] ;
Note: See TracChangeset for help on using the changeset viewer.