mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-22 16:17:47 +00:00
Make GCMouse scroll direction consistent with UIPanGestureRecognizer
This commit is contained in:
1 parent
283a5516d8
commit
90d416ab34
1 file changed
+1
-1
@@ -439,7 +439,7 @@ static const double MOUSE_SPEED_DIVISOR = 2.5;
|
||||
// GCMouse for mice, so we will have to just use it and hope for the best.
|
||||
#if TARGET_OS_TV
|
||||
mouse.mouseInput.scroll.yAxis.valueChangedHandler = ^(GCControllerAxisInput * _Nonnull axis, float value) {
|
||||
self->accumulatedScrollY += -value;
|
||||
self->accumulatedScrollY += value;
|
||||
|
||||
short truncatedScrollY = (short)self->accumulatedScrollY;
|
||||
|
||||
|
||||
Reference in new issue
Block a user