determine Siri remote landscape/portrait?

The docs talk about the 'allowsRotation' property of GCMicroGamepad -- it allows the remote to be used in landscape orientation as well as portrait, supposedly.

I tried setting this to YES, but it doesn't seem to affect the dpad values. Has anyone gotten it to work?


Also, if I'm tracking touches and using the gravity values in addition to the dpad, that property isn't going to help me anyway, is it?


So does anyone know if there's a good way to decide when the remote's in portrait vs when it is landscape? There's not any API for determining that, is there?


Thanks

Bob

5 years later...

tvOS 14.0.2, Xcode 12.1

Setting:
Code Block
microGamepadController.allowsRotation = true

... makes no difference on my end whatsoever.

Meaning that dPad values are reported as if the Siri Remote is still in Portrait mode.

So yeah, I guess the Siri Remote should not be supported in landscape mode? ¯_(ツ)_/¯
I don't think anyone uses it to play games nowadays anyway.

It would be nice to know the correct approach, tho.
determine Siri remote landscape/portrait?
 
 
Q