summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortom <tombarrett@siu.edu>2017-02-08 11:42:57 -0600
committertom <tombarrett@siu.edu>2017-02-08 11:42:57 -0600
commit2aa219eb1e4e37375c85a64bcbb673c43fe23cd9 (patch)
tree32fcb6b539c7533c68b6de558a99b59436bc7cc0 /src
parentba6b1fa8fdc3a0856a720695dd40efadc6e5889c (diff)
-added quitting with q
-just using = for + since there is no difference
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 127c306..714845c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -20,8 +20,9 @@ int main()
e.off();
else if(e.gEventType() == SDL_KEYDOWN)
switch(e.gEvent().key.keysym.sym){
- case SDLK_RIGHT: speed+=30; break;
- case SDLK_LEFT : if(speed >30) speed-=30; break;
+ case SDLK_q: e.off(); break;
+ case SDLK_EQUALS: speed+=30; break;
+ case SDLK_MINUS: if(speed >30) speed-=30; break;
}
}