Added option to swap left and right mouse buttons

Changed the use of SDL buttons to Moonlight buttons definitions
This commit is contained in:
Anton
2020-08-23 16:05:00 +02:00
parent 5755afc4ea
commit 89319dc7aa
7 changed files with 37 additions and 0 deletions
+17
View File
@@ -638,6 +638,23 @@ Flickable {
ToolTip.visible: hovered
ToolTip.text: "When enabled, holding the Start button will toggle mouse mode"
}
CheckBox {
id: swapMouseButtonsCheck
hoverEnabled: true
width: parent.width
text: "Swap mouse buttons"
font.pointSize: 12
checked: StreamingPreferences.swapMouseButtons
onCheckedChanged: {
StreamingPreferences.swapMouseButtons = checked
}
ToolTip.delay: 1000
ToolTip.timeout: 3000
ToolTip.visible: hovered
ToolTip.text: "When checked, swap the left and right mouse buttons"
}
}
}