Detecting joystick turn
Hello,
I'm currently having trouble doing something that does not seems complex.
I want to detect when the user does a full circle (or more) with the joystick, clockwise or anti clockwise. Picture like a mini-game where you have to turn the joystick really fast !
I store the angle between the point where the Joystick was first pushed, and the current angle, I have a 0 - 360 angle. I also check while moving if I change direction ( going clockwise while in an anticlockwise turn, to reset the startposition).
My code Is really dirty, I would love to see if someone has a example or an direction on this ? I think my main problem is when i cross the 0/360 value, I mess up everything.
Thanks !
So, how did you end up with this solution, AStrkl? Found your question on google, i'm trying to do the same thing to accomplish a feature in my game. Hope you still read this and have some light :)
Thanks
Your answer
Follow this Question
Related Questions
Controller Stick Input "Snaps" 0 Answers
how to map joystick for mobile game? 0 Answers
Problem with player control with physical joystick 0 Answers
Help needed with menu navigation. 0 Answers
Joystick 3rd Axis problem on Linux 0 Answers