From: Daniel Karbach Date: Fri, 6 Mar 2015 16:34:21 +0000 (+0100) Subject: introduce space and shift for up and down :) X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=66d7cf56cfbb565dd4700d94e5f338a39a40edeb;p=blank.git 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 --- 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; }