From 57e1eb54b7c0f7c9d0181533f0a6792aef486f5e Mon Sep 17 00:00:00 2001 From: andreja6 Date: Wed, 11 Apr 2018 10:41:08 -0700 Subject: [PATCH] Made camera faster on shift --- main.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index dc786a4..418f6ed 100644 --- a/main.cpp +++ b/main.cpp @@ -27,7 +27,7 @@ static GFontRef fntlighttrek = NULL; static bool democ = true; static std::string message = ""; static G3D::RealTime messageTime = 0; -static int FPSVal[7] = {10, 20, 30, 60, 120, 240, INT_MAX}; +static int FPSVal[8] = {10, 20, 30, 60, 120, 240, INT_MAX,1}; static int index = 2; static float TIMERVAL = 60.0F; static int SCOREVAL = 0; @@ -260,6 +260,17 @@ void Demo::onUserInput(UserInput* ui) { { app->debugController.setActive(false); } + + + if(ui->keyPressed(SDLK_LSHIFT)) + { + app->debugController.setMoveRate(20); + } + else if(ui->keyReleased(SDLK_LSHIFT)) + { + app->debugController.setMoveRate(10); + } + if(ui->keyDown(SDLK_LCTRL)) { if(ui->keyPressed('d'))