summaryrefslogtreecommitdiff
path: root/src/game/GameView.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-03 18:25:28 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-03 18:25:28 (GMT)
commitf586a5585f3838e78cf6880b84d4c369040b5f67 (patch)
treea3188318952df1ffc8a048647dadfa17b7bbb55e /src/game/GameView.cpp
parent0e5c3da0f5d932c9b1652b6c55476f467b15a2ce (diff)
downloadpowder-f586a5585f3838e78cf6880b84d4c369040b5f67.zip
powder-f586a5585f3838e78cf6880b84d4c369040b5f67.tar.gz
Add shortcuts for things like gravity, air and air reset, issues #85 and #57
Diffstat (limited to 'src/game/GameView.cpp')
-rw-r--r--src/game/GameView.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp
index 85f4330..4bbb811 100644
--- a/src/game/GameView.cpp
+++ b/src/game/GameView.cpp
@@ -1017,6 +1017,21 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool
selectMode = SelectStamp;
selectPoint1 = ui::Point(-1, -1);
break;
+ case 'w':
+ c->SwitchGravity();
+ break;
+ case 'y':
+ c->SwitchAir();
+ break;
+ case 'u':
+ c->ToggleAHeat();
+ break;
+ case '=':
+ if(ctrl)
+ c->ResetSpark();
+ else
+ c->ResetAir();
+ break;
case 'c':
if(ctrl)
{