mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-18 06:31:05 +00:00
Make GCMouse scroll direction consistent with UIPanGestureRecognizer
This commit is contained in:
@@ -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.
|
// GCMouse for mice, so we will have to just use it and hope for the best.
|
||||||
#if TARGET_OS_TV
|
#if TARGET_OS_TV
|
||||||
mouse.mouseInput.scroll.yAxis.valueChangedHandler = ^(GCControllerAxisInput * _Nonnull axis, float value) {
|
mouse.mouseInput.scroll.yAxis.valueChangedHandler = ^(GCControllerAxisInput * _Nonnull axis, float value) {
|
||||||
self->accumulatedScrollY += -value;
|
self->accumulatedScrollY += value;
|
||||||
|
|
||||||
short truncatedScrollY = (short)self->accumulatedScrollY;
|
short truncatedScrollY = (short)self->accumulatedScrollY;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user