Make GCMouse scroll direction consistent with UIPanGestureRecognizer

This commit is contained in:
Cameron Gutman
2021-12-12 16:28:21 -06:00
parent 283a5516d8
commit 90d416ab34

View File

@@ -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;