We’ve noticed something strange when using axis events on the Apple TV remote.
Wherever we initially touch the touchpad becomes the 0, 0 point of the touch coordinates. For example, if I begin touching the touchpad in the top left corner, that will be where x = 0 and y = 0. However if I then let go, and then start a new touch in the bottom right corner, the 0, 0 point of the touch is now moved to there.
This is fine when I want to use normalized values to determine which way the touch is being moved etc (especially now that overly sensitive key events have been removed from the dpad). However there doesn’t seem to be a way to get the ABSOLUTE xy position that was touched on the touchpad.
This would be useful because it means we can directly map an object position on screen to the position that was touched on the dpad (i.e. if you touch the top left corner our UI element would appear in the top left corner of the game, and if you touched the bottom right corner it would appear in the top right).
A member of our team is at an Apple event in London today, and has been asking someone from Apple a few questions about tvOS and the remote.
The person from Apple has said: “There are 2 modes for the dpad, relative and absolute. If you are not getting absolute values then perhaps reportsAbsoluteDpadValues has been set to false”.
Is this something we can turn on ourselves?