diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-24 18:15:22 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-24 18:15:22 (GMT) |
| commit | 98da88e34fc67eed1a9e1a7f1387be4bb9d4c9a8 (patch) | |
| tree | c3bf92327af9d38f4a1da659b2cca5897336878f /src/game/GameView.cpp | |
| parent | a8d4bdeb2d305c69d0126504b4c4b31b92a1d536 (diff) | |
| download | powder-98da88e34fc67eed1a9e1a7f1387be4bb9d4c9a8.zip powder-98da88e34fc67eed1a9e1a7f1387be4bb9d4c9a8.tar.gz | |
Alt click alternative to middle clicking
Diffstat (limited to 'src/game/GameView.cpp')
| -rw-r--r-- | src/game/GameView.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp index 4a9bd93..e3b97d5 100644 --- a/src/game/GameView.cpp +++ b/src/game/GameView.cpp @@ -1002,6 +1002,8 @@ void GameView::OnMouseMove(int x, int y, int dx, int dy) void GameView::OnMouseDown(int x, int y, unsigned button) { + if(altBehaviour) + button = BUTTON_MIDDLE; if(selectMode!=SelectNone) { if(button==BUTTON_LEFT) @@ -1035,6 +1037,9 @@ void GameView::OnMouseDown(int x, int y, unsigned button) void GameView::OnMouseUp(int x, int y, unsigned button) { + if(altBehaviour) + button = BUTTON_MIDDLE; + if(selectMode!=SelectNone) { if(button==BUTTON_LEFT) |
