SiriRemote touchesEnded called, value change handler NOT

I have a UIViewController which inherits from GCEventViewController and I register a value change handler for the GCController microPad Profile.

But when I use the SiriRemote in the Simulator none of my handling methods is called. When I stop with the touches the touchesEnded function is called though on that particular view controller.

This is are excerpts of my code:


    var gameController : GCController? {
        get {
            return self.currentGameController
        }
        set(v) {
            self.currentGameController = v
            self.controllerUserInteractionEnabled = false
            if let microPad = v!.microGamepad {
                microPad.allowsRotation = false
                microPad.reportsAbsoluteDpadValues = true
                microPad.valueChangedHandler = self.microPadValueChangeHandler
            }


        }
    }
    ...
     override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
        log.info("||||| TOUCHES ENDED IN GAMEVIEW_CONTROLLER |||||.")
    }


    func microPadValueChangeHandler( _ gp : GCMicroGamepad , _ gc : GCControllerElement ) {
        log.info("||||||||| microPadValueChangeHandler ||||||")
        log.info("|||||||||||||||||||||||||||||||||||||||||||")
        log.info("")
    }



Any ideas why the microPadValueChangeHandler is NOT called and the touchedEnded is called?


Any help is greatly appreciated.


Cheers,

Frank

I would like to mention:


This only happens in the Simulator - it works fine on a real AppleTV - device.


Cheers,


Frank

SiriRemote touchesEnded called, value change handler NOT
 
 
Q