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 05b540e..fa8cf9c 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -265,6 +265,9 @@ namespace ui {
if(SDL_KEY==SDLK_q){
player->inv->itemToss();
}
+ if(SDL_KEY==SDLK_e){
+ player->inv->useItem();
+ }
if(SDL_KEY==SDLK_c){
dialogBox("","You pressed `c`, but nothing happened.");
}