mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 02:45:36 +00:00
[Mac] Fix Mouse.GetState() h-wheel
External mice will now report horizontal scrolling in the low-level `Mouse.GetState()` API. The touchpad apparently creates an emulated mouse device that does not report horizontal wheel scrolling events. Touchpad support probably requires a proper multitouch implementation.
This commit is contained in:
parent
5e63c5fa5c
commit
8373782fad
|
@ -413,6 +413,11 @@ namespace OpenTK.Platform.MacOS
|
|||
mouse.State.Y += v_int;
|
||||
break;
|
||||
|
||||
case HIDUsageGD.Z:
|
||||
// Horizontal scrolling for apple mouse (old-style with trackball)
|
||||
mouse.State.SetScrollRelative(v_int, 0);
|
||||
break;
|
||||
|
||||
case HIDUsageGD.Wheel:
|
||||
mouse.State.SetScrollRelative(0, v_int);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue