Tao.Platform.Windows SDK Documentation

Winmm.JOYINFOEX Structure

The JOYINFOEX structure contains extended information about the joystick position, point-of-view position, and button state.

For a list of all members of this type, see Winmm.JOYINFOEX Members.

System.Object
   System.ValueType
      Tao.Platform.Windows.Winmm.JOYINFOEX

[Visual Basic]
Public Structure Winmm.JOYINFOEX
[C#]
public struct Winmm.JOYINFOEX

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The value of the dwSize member is also used to identify the version number for the structure when it's passed to the joyGetPosEx function.

Most devices with a point-of-view control have only five positions. When the JOY_RETURNPOV flag is set, these positions are reported by using the following constants:

JOY_POVBACKWARD - Point-of-view hat is pressed backward. The value 18,000 represents an orientation of 180.00 degrees (to the rear). JOY_POVCENTERED - Point-of-view hat is in the neutral position. The value -1 means the point-of-view hat has no angle to report. JOY_POVFORWARD - Point-of-view hat is pressed forward. The value 0 represents an orientation of 0.00 degrees (straight ahead). JOY_POVLEFT - Point-of-view hat is being pressed to the left. The value 27,000 represents an orientation of 270.00 degrees (90.00 degrees to the left). JOY_POVRIGHT - Point-of-view hat is pressed to the right. The value 9,000 represents an orientation of 90.00 degrees (to the right).

The default joystick driver currently supports these five discrete directions. If an application can accept only the defined point-of-view values, it must use the JOY_RETURNPOV flag. If an application can accept other degree readings, it should use the JOY_RETURNPOVCTS flag to obtain continuous data if it is available. The JOY_RETURNPOVCTS flag also supports the JOY_POV constants used with the JOY_RETURNPOV flag.

Requirements

Namespace: Tao.Platform.Windows

Assembly: Tao.Platform.Windows (in Tao.Platform.Windows.dll)

See Also

Winmm.JOYINFOEX Members | Tao.Platform.Windows Namespace | joyGetPosEx