summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2024-03-14 00:23:14 +0100
committerder richter <der.richter@gmx.de>2024-03-16 15:29:27 +0100
commit53722a408254cb99fc7bcc7c729cc0c5044c2ebb (patch)
tree7b6d21e41ef1b367a59a208e5c825cb4396a489d
parentdb4eac140de5ac01c2014f86540ebffcb0d0596b (diff)
downloadmpv-53722a408254cb99fc7bcc7c729cc0c5044c2ebb.tar.bz2
mpv-53722a408254cb99fc7bcc7c729cc0c5044c2ebb.tar.xz
mac/input: fix switched mouse forward and back button
-rw-r--r--osdep/mac/input_helper.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/osdep/mac/input_helper.swift b/osdep/mac/input_helper.swift
index fdab411deb..7b954db2ba 100644
--- a/osdep/mac/input_helper.swift
+++ b/osdep/mac/input_helper.swift
@@ -203,8 +203,8 @@ class InputHelper: NSObject {
0: SWIFT_MBTN_LEFT,
1: SWIFT_MBTN_RIGHT,
2: SWIFT_MBTN_MID,
- 3: SWIFT_MBTN_BACK,
- 4: SWIFT_MBTN_FORWARD,
+ 3: SWIFT_MBTN_FORWARD,
+ 4: SWIFT_MBTN_BACK,
]
return Int32(buttonMapping[button] ?? SWIFT_MBTN9 + Int32(button - 5));