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
Back to the index.
Go to Paul Kuliniewicz's Home Page.
E-mail: rogue953@hotmail.com
This page is at http://skyscraper.fortunecity.com/transmission/45/api/j/joyinfo.html