aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 13b898d..c0588ce 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -165,6 +165,7 @@ namespace ui {
if(SDL_KEY==SDLK_i)currentWorld=currentWorld->goWorldBack(player); // Go back a layer if possible
if(SDL_KEY==SDLK_k)currentWorld=currentWorld->goWorldFront(player); // Go forward a layer if possible
if(SDL_KEY==SDLK_F3)debug^=true;
+ if(SDL_KEY==SDLK_LSHIFT)player->speed = 3;
// TEMPORARY UNTIL MOUSE
if(SDL_KEY==SDLK_t){
@@ -181,6 +182,8 @@ namespace ui {
case SDL_KEYUP:
if(SDL_KEY==SDLK_a)player->vel.x=0; // Stop the player if movement keys are released
if(SDL_KEY==SDLK_d)player->vel.x=0;
+ if(SDL_KEY==SDLK_LSHIFT)player->speed = 1;
+
break;
default:
break;