JOYINFO Structure

Type JOYINFO
  wXpos As Long
  wYpos As Long
  wZpos As Long
  wButtons As Long
End Type

JOYINFO-type variables hold the current position of a joystick. This structure can store the positions of the x, y, and z axes, as well as the buttons pushed. Note that this structure can only receive information about buttons 1 through 4 on the joystick -- if there are more, they are ignored.

wXpos
The current x-axis coordinate.
wYpos
The current y-axis coordinate.
wZpos
The current z-axis coordinate.
wButtons
Zero or more of the following flags, specifying which buttons are being depressed:
JOY_BUTTON1 = &H1
Button #1 is depressed.
JOY_BUTTON2 = &H2
Button #2 is depressed.
JOY_BUTTON3 = &H4
Button #3 is depressed.
JOY_BUTTON4 = &H8
Button #4 is depressed.

Used by: joyGetPos

Go back to the alphabetical Structure listing.
Go back to the Reference section index.


This page is copyright © 2000 Paul Kuliniewicz. Copyright Information.
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/j/joyinfo.html