NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
byte JoystickMessageType::JoystickDir

The joystick direction or position. Ranges from 1 to 9, with the values representing numeric keypad buttons. 8 is up, 2 is down, 5 is center, etc.

Examples:
ex_joystickmsg.nxc.