01-10-2013 03:00 PM
Okay, I need to know if the user has moved the trackwheel down, left, up or right and then be able to move an image in accordance with the direction the user has moved the trackwheel.
how can i use navigationMovement() to do this, or is there a different way?
01-10-2013 03:18 PM
01-10-2013 05:12 PM
You have dx and dy as parameters there. dx < 0 is moving left; dx > 0 is moving right; dy > 0 is moving down (yes, down is the positive direction); dy < 0 is moving up.
The absolute values of dx and dy are usually 0 or 1, but sometimes quick swipes on the touchpad will generate bigger movements. It is also very rare that both dx and dy are non-zero, but it might happen on fast diagonal swipes.