f5: reload sim, f2: screenshot f3: toggle extra HUD

This commit is contained in:
jacob1 2013-10-26 00:17:06 -04:00
parent 692f4b18c2
commit 48ecbce554
2 changed files with 13 additions and 0 deletions

View File

@ -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();

View File

@ -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