Current state of the 32 joystick buttons. The value of this member can be set to any combination of JOY_BUTTONn flags, where n is a value in the range of 1 through 32 corresponding to the button that is pressed.
publicInt32,SystemdwButtons
Résultat
System.Int32
dwFlags public_oe property
Flags indicating the valid information returned in this structure. Members that do not contain valid information are set to zero.
JOY_RETURNALL - Equivalent to setting all of the JOY_RETURN bits except JOY_RETURNRAWDATA. JOY_RETURNBUTTONS - The dwButtons member contains valid information about the state of each joystick button. JOY_RETURNCENTERED - Centers the joystick neutral position to the middle value of each axis of movement. JOY_RETURNPOV - The dwPOV member contains valid information about the point-of-view control, expressed in discrete units. JOY_RETURNPOVCTS - The dwPOV member contains valid information about the point-of-view control expressed in continuous, one-hundredth degree units. JOY_RETURNR - The dwRpos member contains valid rudder pedal data. This information represents another (fourth) axis. JOY_RETURNRAWDATA - Data stored in this structure is uncalibrated joystick readings. JOY_RETURNU - The dwUpos member contains valid data for a fifth axis of the joystick, if such an axis is available, or returns zero otherwise. JOY_RETURNV - The dwVpos member contains valid data for a sixth axis of the joystick, if such an axis is available, or returns zero otherwise. JOY_RETURNX - The dwXpos member contains valid data for the x-coordinate of the joystick. JOY_RETURNY - The dwYpos member contains valid data for the y-coordinate of the joystick. JOY_RETURNZ - The dwZpos member contains valid data for the z-coordinate of the joystick. JOY_USEDEADZONE - Expands the range for the neutral position of the joystick and calls this range the dead zone. The joystick driver returns a constant value for all positions in the dead zone.
The following flags provide data to calibrate a joystick and are intended for custom calibration applications.
JOY_CAL_READ3 - Read the x-, y-, and z-coordinates and store the raw values in dwXpos, dwYpos, and dwZpos. JOY_CAL_READ4 - Read the rudder information and the x-, y-, and z-coordinates and store the raw values in dwXpos, dwYpos, dwZpos, and dwRpos. JOY_CAL_READ5 - Read the rudder information and the x-, y-, z-, and u-coordinates and store the raw values in dwXpos, dwYpos, dwZpos, dwRpos, and dwUpos. JOY_CAL_READ6 - Read the raw v-axis data if a joystick mini driver is present that will provide the data. Returns zero otherwise. JOY_CAL_READALWAYS - Read the joystick port even if the driver does not detect a device. JOY_CAL_READRONLY - Read the rudder information if a joystick mini-driver is present that will provide the data and store the raw value in dwRpos. Return zero otherwise. JOY_CAL_READXONLY - Read the x-coordinate and store the raw (uncalibrated) value in dwXpos. JOY_CAL_READXYONLY - Reads the x- and y-coordinates and place the raw values in dwXpos and dwYpos. JOY_CAL_READYONLY - Reads the y-coordinate and store the raw value in dwYpos. JOY_CAL_READZONLY - Read the z-coordinate and store the raw value in dwZpos. JOY_CAL_READUONLY - Read the u-coordinate if a joystick mini-driver is present that will provide the data and store the raw value in dwUpos. Return zero otherwise. JOY_CAL_READVONLY - Read the v-coordinate if a joystick mini-driver is present that will provide the data and store the raw value in dwVpos. Return zero otherwise.
publicInt32,SystemdwFlags
Résultat
System.Int32
dwPOV public_oe property
Current position of the point-of-view control. Values for this member are in the range 0 through 35,900. These values represent the angle, in degrees, of each view multiplied by 100.
publicInt32,SystemdwPOV
Résultat
System.Int32
dwReserved1 public_oe property
Reserved; do not use.
publicInt32,SystemdwReserved1
Résultat
System.Int32
dwReserved2 public_oe property
Reserved; do not use.
publicInt32,SystemdwReserved2
Résultat
System.Int32
dwRpos public_oe property
Current position of the rudder or fourth joystick axis.