mirror of https://github.com/mpv-player/mpv
mac/input: fix switched mouse forward and back button
This commit is contained in:
parent
db4eac140d
commit
53722a4082
|
@ -203,8 +203,8 @@ class InputHelper: NSObject {
|
||||||
0: SWIFT_MBTN_LEFT,
|
0: SWIFT_MBTN_LEFT,
|
||||||
1: SWIFT_MBTN_RIGHT,
|
1: SWIFT_MBTN_RIGHT,
|
||||||
2: SWIFT_MBTN_MID,
|
2: SWIFT_MBTN_MID,
|
||||||
3: SWIFT_MBTN_BACK,
|
3: SWIFT_MBTN_FORWARD,
|
||||||
4: SWIFT_MBTN_FORWARD,
|
4: SWIFT_MBTN_BACK,
|
||||||
]
|
]
|
||||||
|
|
||||||
return Int32(buttonMapping[button] ?? SWIFT_MBTN9 + Int32(button - 5));
|
return Int32(buttonMapping[button] ?? SWIFT_MBTN9 + Int32(button - 5));
|
||||||
|
|
Loading…
Reference in New Issue