Joystick Position

You can query a joystick for position and button information by using the joyGetPosEx function. This function reports position information returned by the older joystick functions of the Win32 API, including position coordinates for the x-, y-, and z-axes. It also reports state information for up to four buttons. The joyGetPosEx function also provides access to the following information:

·Status of fourth, fifth, and sixth axes (r, u, and v)

·Rudder information

·Point-of-view hat

·State information for up to 32 buttons

·Uncalibrated (raw) joystick data

·Scaled data for a defined range of values

·Centered scaled data

·Scaled data that includes a dead zone around the neutral joystick position