Changeset 1037 for trunk/src/input.cpp
- Timestamp:
- Oct 29, 2011, 9:53:10 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/input.cpp
r1035 r1037 64 64 #if defined USE_SDL 65 65 /* 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 66 69 Uint8 *keystate = SDL_GetKeyState(NULL); 70 #endif 67 71 int left = keystate[SDLK_d] - (keystate[SDLK_a] | keystate[SDLK_q]); 68 72 int up = (keystate[SDLK_w] | keystate[SDLK_z]) - keystate[SDLK_s] ;
Note: See TracChangeset
for help on using the changeset viewer.