From ba723816a1da2954edc798edc2723991b8c163de Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 5 Mar 2023 19:45:29 -0600 Subject: [PATCH] Deregister GCMouse scroll callbacks --- Limelight/Input/ControllerSupport.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Limelight/Input/ControllerSupport.m b/Limelight/Input/ControllerSupport.m index 5e302ff..0d22b2f 100644 --- a/Limelight/Input/ControllerSupport.m +++ b/Limelight/Input/ControllerSupport.m @@ -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)) {