C# Class Vector.Win32.Winmm.JOYINFOEX

Afficher le fichier Open project: sinclairzx81/vector-cs

Méthodes publiques

Свойство Type Description
dwButtonNumber System.Int32
dwButtons System.Int32
dwFlags System.Int32
dwPOV System.Int32
dwReserved1 System.Int32
dwReserved2 System.Int32
dwRpos System.Int32
dwSize System.Int32
dwUpos System.Int32
dwVpos System.Int32
dwXpos System.Int32
dwYpos System.Int32
dwZpos System.Int32

Property Details

dwButtonNumber public_oe property

Current button number that is pressed.
public Int32,System dwButtonNumber
Résultat System.Int32

dwButtons public_oe property

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.
public Int32,System dwButtons
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.

public Int32,System dwFlags
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.
public Int32,System dwPOV
Résultat System.Int32

dwReserved1 public_oe property

Reserved; do not use.
public Int32,System dwReserved1
Résultat System.Int32

dwReserved2 public_oe property

Reserved; do not use.
public Int32,System dwReserved2
Résultat System.Int32

dwRpos public_oe property

Current position of the rudder or fourth joystick axis.
public Int32,System dwRpos
Résultat System.Int32

dwSize public_oe property

Size, in bytes, of this structure.
public Int32,System dwSize
Résultat System.Int32

dwUpos public_oe property

Current fifth axis position.
public Int32,System dwUpos
Résultat System.Int32

dwVpos public_oe property

Current sixth axis position.
public Int32,System dwVpos
Résultat System.Int32

dwXpos public_oe property

Current X-coordinate.
public Int32,System dwXpos
Résultat System.Int32

dwYpos public_oe property

Current Y-coordinate.
public Int32,System dwYpos
Résultat System.Int32

dwZpos public_oe property

Current Z-coordinate.
public Int32,System dwZpos
Résultat System.Int32