summaryrefslogtreecommitdiff
path: root/src/game/GameView.cpp
diff options
context:
space:
mode:
authorSimon 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)
commit98da88e34fc67eed1a9e1a7f1387be4bb9d4c9a8 (patch)
treec3bf92327af9d38f4a1da659b2cca5897336878f /src/game/GameView.cpp
parenta8d4bdeb2d305c69d0126504b4c4b31b92a1d536 (diff)
downloadpowder-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.cpp5
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)