summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/game.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game.cpp b/src/game.cpp index 501722d..72bcbfa 100644 --- a/src/game.cpp +++ b/src/game.cpp
@@ -794,10 +794,10 @@ void Game::updatePlaying(size_t frameTime) {
794 } 794 }
795 795
796 const Uint8* state = SDL_GetKeyboardState(NULL); 796 const Uint8* state = SDL_GetKeyboardState(NULL);
797 keystate.left = state[SDL_SCANCODE_LEFT]; 797 keystate.left = state[SDL_SCANCODE_LEFT] || state[SDL_SCANCODE_A];
798 keystate.right = state[SDL_SCANCODE_RIGHT]; 798 keystate.right = state[SDL_SCANCODE_RIGHT] || state[SDL_SCANCODE_D];
799 keystate.up = state[SDL_SCANCODE_UP]; 799 keystate.up = state[SDL_SCANCODE_UP] || state[SDL_SCANCODE_W];
800 keystate.down = state[SDL_SCANCODE_DOWN]; 800 keystate.down = state[SDL_SCANCODE_DOWN] || state[SDL_SCANCODE_S];
801 801
802 bumpCooldown.accumulate(frameTime); 802 bumpCooldown.accumulate(frameTime);
803 if (alreadyBumped && keystate != lastInput && bumpCooldown.step()) { 803 if (alreadyBumped && keystate != lastInput && bumpCooldown.step()) {