summary refs log tree commit diff stats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 9d889f2..f9db18d 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -33,6 +33,10 @@ void loop(Renderer& renderer) {
33 while (SDL_PollEvent(&e)) { 33 while (SDL_PollEvent(&e)) {
34 if (e.type == SDL_QUIT || (e.type == SDL_KEYDOWN && e.key.keysym.sym == SDLK_ESCAPE)) { 34 if (e.type == SDL_QUIT || (e.type == SDL_KEYDOWN && e.key.keysym.sym == SDLK_ESCAPE)) {
35 return; 35 return;
36 } else if (e.type == SDL_KEYDOWN && (e.key.keysym.sym == SDLK_LSHIFT || e.key.keysym.sym == SDLK_RSHIFT)) {
37 party.beginCrouch(game);
38 } else if (e.type == SDL_KEYUP && (e.key.keysym.sym == SDLK_LSHIFT || e.key.keysym.sym == SDLK_RSHIFT)) {
39 party.endCrouch(game);
36 } 40 }
37 } 41 }
38 42