# HG changeset patch # User unc0rr # Date 1415047013 -10800 # Node ID 2b590e7972b1d12fda79427f7deee6bdcffbb9a2 # Parent 03519fd9f98d6380fe8bb19c44c695645e6bc172 Allow using right button or wheel to change team color diff -r 03519fd9f98d -r 2b590e7972b1 qmlFrontend/qml/qmlFrontend/GameConfig.qml --- a/qmlFrontend/qml/qmlFrontend/GameConfig.qml Mon Nov 03 00:01:02 2014 +0300 +++ b/qmlFrontend/qml/qmlFrontend/GameConfig.qml Mon Nov 03 23:36:53 2014 +0300 @@ -115,7 +115,14 @@ MouseArea { z: 1 anchors.fill: parent - onClicked: HWEngine.changeTeamColor(name, 1) + acceptedButtons: Qt.LeftButton | Qt.RightButton + onClicked: { + if (mouse.button === Qt.LeftButton) + HWEngine.changeTeamColor(name, 1) + else if (mouse.button === Qt.RightButton) + HWEngine.changeTeamColor(name, -1) + } + onWheel: HWEngine.changeTeamColor(name, -wheel.angleDelta.y) } }