Group Group Group Group Group Group Group Group Group

Siri Remote dPad valueChangehandler in Simulator not working?

Hi,

I developed a small piece of code to get the X- and Y-Values from the Siri Remots dPad using the
valueChangeHandler:

    self.controllerUserInteractionEnabled = false
    
    if let miniPad = self.controller?.microGamepad {
            miniPad.valueChangedHandler = { ( gamepad : GCMicroGamepad , element : GCControllerElement ) -> Void in
            debugPrint("************ GAMEPAD VALUE CHANGE HANDLER **************")
            var s = 2
            }
        
        miniPad.dpad.valueChangedHandler = { ( dPad : GCControllerDirectionPad , xValue : Float , yValue : Float ) -> Void in
            debugPrint("| DPAD valueChangeHandler with x: \(xValue) , y \(yValue).")
        }
        
    }

But somehow this doesn’t work - at least in the Simulator the handler is never called - on the real AppleTV , still with tvOS 9.2, it works.

I couldn’t find any hints or tips why this is not working in the Simulator.

Did someone else experience the same problem?

Kind Regards,

Frank