JOYINFO-Struktur (joystickapi.h)

Die JOYINFO-Struktur enthält Informationen zur Joystickposition und zum Tastenzustand.

Syntax

typedef struct joyinfo_tag {
  UINT wXpos;
  UINT wYpos;
  UINT wZpos;
  UINT wButtons;
} JOYINFO, *PJOYINFO, *NPJOYINFO, *LPJOYINFO;

Member

wXpos

Aktuelle X-Koordinate.

wYpos

Aktuelle Y-Koordinate.

wZpos

Aktuelle Z-Koordinate.

wButtons

Aktueller Zustand der Joysticktasten, die durch einen oder mehrere der folgenden Werte beschrieben werden:

Schaltfläche Beschreibung
JOY_BUTTON1 Die erste Joysticktaste wird gedrückt.
JOY_BUTTON2 Die zweite Joysticktaste wird gedrückt.
JOY_BUTTON3 Die dritte Joysticktaste wird gedrückt.
JOY_BUTTON4 Die vierte Joysticktaste wird gedrückt.

Anforderungen

Anforderung Wert
Unterstützte Mindestversion (Client) Windows 2000 Professional [nur Desktop-Apps]
Unterstützte Mindestversion (Server) Windows 2000 Server [nur Desktop-Apps]
Kopfzeile joystickapi.h (einschließlich Windows.h)

Weitere Informationen

Joysticks

Multimedia-Joystickstrukturen