PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, September 28, 2022

[FIXED] How to detect the circular Gestures on New Siri Remote 2nd Generation

 September 28, 2022     apple-tv, siri-remote, swift, tvos     No comments   

Issue

I want to detect the action of rotate the wheel on the new Apple TV Siri Remote 2nd Generation.

Is there a way to know which direction clockwise or anti-clockwise?

How can i get the speed of rotation or any data related to this circular action?

enter image description here


Solution

Apple did not announce any new gesture recognizer for this new gesture, but you can implement it by yourself.

To do it you can use the GameController SDK that will allow you to get the absolute location of the user finger in the digitizer. Once you have the coordinates of the gesture location you can apply some trigonometry maths to detect if they are rotating the finger clockwise or anticlockwise.

I wrote a post with further details here: https://dcordero.me/posts/capture_circular_gestures_on_siri_remote_2nd_generation.html



Answered By - David Cordero
Answer Checked By - Willingham (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing