From 98da88e34fc67eed1a9e1a7f1387be4bb9d4c9a8 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Fri, 24 Aug 2012 19:15:22 +0100 Subject: [PATCH] Alt click alternative to middle clicking --- src/game/GameView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp index 4a9bd933b..e3b97d5ac 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)