aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index db376b7..6f5bdbe 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -68,6 +68,11 @@ namespace ui {
*/
vec2 mouse;
+
+ /*
+ * Variety of keydown bools
+ */
+ bool edown;
/*
* Debugging flags.
@@ -624,6 +629,7 @@ DONE:
if(SDL_KEY==SDLK_F3)debug^=true;
if(((SDL_KEY==SDLK_b) & (SDL_KEY==SDLK_F3)))posFlag^=true;
if(SDL_KEY==SDLK_e){
+ edown=true;
if(heyOhLetsGo == 0){
heyOhLetsGo = loops;
player->inv->mouseSel = false;
@@ -646,6 +652,7 @@ DONE:
if(SDL_KEY==SDLK_h)player->health-=5;
if(SDL_KEY==SDLK_f)player->light ^= true;
if(SDL_KEY==SDLK_e){
+ edown=false;
if(player->inv->invHover){
player->inv->invHover = false;
heyOhLetsGo = 0;