Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Need relative position of Apple TV Remote trackpad events
Started by sporkfin Jan 13 2018 12:29 PM

3 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

sporkfin

[GLOBAL: userInfoPane.html]
sporkfin
  • Contributor

  • 447 posts
  • Corona SDK

I need a way to get the relative position of Apple TV Remote trackpad events.  I just can't crack this one.  Any hints or links would be appreciated.

 

Specifically, I will be using the relative x and y positions to trigger events and control a character.  The PewPew sample app supports absolute positions meaning that there are only 8 possible movement directions.  I need 360 movement directions thus relative x and y positions.

 

Thanks!



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,263 posts
  • Enterprise

Are you treating them as key events or axis events?

 

Rob



[TOPIC: post.html]
#3

sporkfin

[GLOBAL: userInfoPane.html]
sporkfin
  • Contributor

  • 447 posts
  • Corona SDK

Axis events. . . I didn't even consider key events since the input will be coming for the Apple Remote touchpad.  Hmmm. . . should I look into key events?



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,263 posts
  • Enterprise

I was going to suggest to make sure to use axis events. You get very precise x and y values, so you should be able to compute a wide range of angles.

 

Rob




[topic_controls]
[/topic_controls]