summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/game/GameView.cpp7
-rw-r--r--src/gui/interface/Keys.h6
2 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp
index 41dc248..4f434ac 100644
--- a/src/gui/game/GameView.cpp
+++ b/src/gui/game/GameView.cpp
@@ -1347,8 +1347,15 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool
c->ShowConsole();
break;
case 'p':
+ case KEY_F2:
screenshot();
break;
+ case KEY_F3:
+ SetDebugHUD(!GetDebugHUD());
+ break;
+ case KEY_F5:
+ c->ReloadSim();
+ break;
case 'r':
if (ctrl)
c->ReloadSim();
diff --git a/src/gui/interface/Keys.h b/src/gui/interface/Keys.h
index c42a894..b74042f 100644
--- a/src/gui/interface/Keys.h
+++ b/src/gui/interface/Keys.h
@@ -45,6 +45,9 @@
#define KEY_w SDLK_w
#define KEY_F1 SDLK_F1
+#define KEY_F2 SDLK_F2
+#define KEY_F3 SDLK_F3
+#define KEY_F5 SDLK_F5
#define BUTTON_LEFT SDL_BUTTON_LEFT
#define BUTTON_MIDDLE SDL_BUTTON_MIDDLE
@@ -83,5 +86,8 @@
#define KEY_w 25
#define KEY_F1 26
+#define KEY_F2 27
+#define KEY_F3 28
+#define KEY_F5 29
#endif