summaryrefslogtreecommitdiff
path: root/src/game/GameController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/GameController.cpp')
-rw-r--r--src/game/GameController.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp
index 48632a7..47c9c0f 100644
--- a/src/game/GameController.cpp
+++ b/src/game/GameController.cpp
@@ -590,6 +590,22 @@ bool GameController::KeyPress(int key, Uint16 character, bool shift, bool ctrl,
{
sim->player2.comm = (int)(sim->player2.comm)|0x04; //Jump command
}
+
+ if((!sim->elementCount[PT_STKM2] || ctrl) && gameView->GetSelectMode() == SelectNone)
+ {
+ switch(key)
+ {
+ case 'w':
+ SwitchGravity();
+ break;
+ case 'd':
+ gameView->ToggleDebug();
+ break;
+ case 's':
+ gameView->BeginStampSelection();
+ break;
+ }
+ }
}
return ret;
}