Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Feature request: buttonA events to include absolute X and Y coordinates of touch.
Started by rakoonic Jun 30 2016 11:04 PM

2 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

rakoonic

[GLOBAL: userInfoPane.html]
rakoonic
  • Contributor

  • 112 posts
  • Corona SDK

Apple apps do very occasionally use this (I recall 1 example off the top of my head, fast forwarding and rewinding by clicking left and right edges of the remote), and it would be a very useful feature in certain circumstances.



[TOPIC: post.html]
#2

torbenratzlaff

[GLOBAL: userInfoPane.html]
torbenratzlaff
  • Contributor

  • 404 posts
  • Corona SDK

Just use "event.target:localToContent()" to retrieve the world coordinates of the touch event.



[TOPIC: post.html]
#3

rakoonic

[GLOBAL: userInfoPane.html]
rakoonic
  • Contributor

  • 112 posts
  • Corona SDK

Thanks, but I'm referring to the Apple TV controller - there's no such concept of targets in this sense. buttonA is when you hard-press (click) the trackpad on the remote control.




[topic_controls]
[/topic_controls]