From 66d7cf56cfbb565dd4700d94e5f338a39a40edeb Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Fri, 6 Mar 2015 17:34:21 +0100 Subject: [PATCH] introduce space and shift for up and down :) Finally! q and e were so annoying. I may eventually remove or reassign them to something else. Maybe roll or menus or nothing at all or whatever. Point is: don't get used to it (until I someday implement configuration). You have been warned. PS: Yeah, like anyone but me reads this anyway :D so watch out, future me! PPS: today I enjoyed reading lengthy commit messages from two years past me, so go figure ^^ PPPS: I can't believe I amended this commit 4 times ...and only for its message --- src/app.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app.cpp b/src/app.cpp index 4f7cbdc..e8f9268 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -89,9 +89,11 @@ void Application::HandleEvents() { right = event.key.state == SDL_PRESSED; break; case SDLK_q: + case SDLK_SPACE: up = event.key.state == SDL_PRESSED; break; case SDLK_e: + case SDLK_LSHIFT: down = event.key.state == SDL_PRESSED; break; } -- 2.39.2