diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-24 16:34:36 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-24 16:34:36 (GMT) |
| commit | beb0e8084932c437d68bbbf7efb82734e5d01ef1 (patch) | |
| tree | 8c13f2bf46c30577ca3e01337566b25dfb0d17ef /src/game/GameView.cpp | |
| parent | 7ead5edd5f2f6ed8e3b62adcc25d897ddba5fb3c (diff) | |
| download | powder-beb0e8084932c437d68bbbf7efb82734e5d01ef1.zip powder-beb0e8084932c437d68bbbf7efb82734e5d01ef1.tar.gz | |
Prevent key overlap for Stickman movement and Gravity/Debug/Stamp actions, fixes #81
Diffstat (limited to 'src/game/GameView.cpp')
| -rw-r--r-- | src/game/GameView.cpp | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp index 26477e0..4a9bd93 100644 --- a/src/game/GameView.cpp +++ b/src/game/GameView.cpp @@ -1179,6 +1179,19 @@ void GameView::OnMouseWheel(int x, int y, int d) } } +void GameView::ToggleDebug() +{ + showDebug = !showDebug; +} + +void GameView::BeginStampSelection() +{ + selectMode = SelectStamp; + selectPoint1 = ui::Point(-1, -1); + infoTip = "\x0F\xEF\xEF\x10Select an area to create a stamp"; + infoTipPresence = 120; +} + void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt) { if(colourRValue->IsFocused() || colourGValue->IsFocused() || colourBValue->IsFocused() || colourAValue->IsFocused()) @@ -1300,9 +1313,6 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool else c->AdjustGridSize(1); break; - case 'd': - showDebug = !showDebug; - break; case KEY_F1: if(!introText) introText = 8047; @@ -1324,15 +1334,6 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool if(ctrl) c->SetDecoration(); break; - case 's': - selectMode = SelectStamp; - selectPoint1 = ui::Point(-1, -1); - infoTip = "\x0F\xEF\xEF\x10Select an area to create a stamp"; - infoTipPresence = 120; - break; - case 'w': - c->SwitchGravity(); - break; case 'y': c->SwitchAir(); break; |
