Data source: http://rosettacode.org/wiki/Joystick_position
