Deregister GCMouse scroll callbacks

This commit is contained in:
Cameron Gutman
2023-03-05 19:45:29 -06:00
parent c57e89a0bd
commit ba723816a1

View File

@@ -425,6 +425,11 @@ static const double MOUSE_SPEED_DIVISOR = 1.25;
for (GCControllerButtonInput* auxButton in mouse.mouseInput.auxiliaryButtons) {
auxButton.pressedChangedHandler = nil;
}
#if TARGET_OS_TV
mouse.mouseInput.scroll.xAxis.valueChangedHandler = nil;
mouse.mouseInput.scroll.yAxis.valueChangedHandler = nil;
#endif
}
-(void) registerMouseCallbacks:(GCMouse*) mouse API_AVAILABLE(ios(14.0)) {