JOYINFO

Aus API-Wiki
Zur Navigation springenZur Suche springen
 Private Type JOYINFO
    wXPos As Long
    wYPos As Long
    wZPos As Long
    wButtons As Long
 End Type

wXPos

Die momentane X-Position des Joysticks

wYPos

Die momentane Y-Position des Joysticks

wZPos

Die Momentane Z-Position (wenn vorhanden) des Joysticks

wButtons

Auflistung der gedrückten Knöpfe. Die folgenden Flags bedeuten jeweils, dass der entsprechende Knopf gedrückt ist:

<codpre>

 Const JOY_BUTTON1 = 1
 Const JOY_BUTTON2 = 2
 Const JOY_BUTTON3 = 4

Const JOY_BUTTON4 = 8


Verweise

MSDN Library - JOYCAPS

Quellen

MSDN Library - JOYCAPS

freepascal.org - Reference for unit 'mmsystem': Constants