JOYCAPS Structure

Type JOYCAPS
  wMid As Integer
  wPid As Integer
  szPname As String * 32
  wXmin As Long
  wXmax As Long
  wYmin As Long
  wYmax As Long
  wZmin As Long
  wZmax As Long
  wNumButtons As Long
  wPeriodMin As Long
  wPeriodMax As Long
  wRmin As Long
  wRmax As Long
  wUmin As Long
  wUmax As Long
  wVmin As Long
  wVmax As Long
  wMaxAxes As Long
  wNumAxes As Long
  wMaxButtons As Long
  szRegKey As String * 32
  szOEMVxD As String * 240
End Type

JOYCAPS-type variables hold information about a joystick (not to be confused with the current position of the joystick). Namely, this structure holds the axes' ranges and the number of buttons the joystick has.

wMid
The manufacturer identifier of the device.
wPid
The product identifier of the device.
szPname
The name of the joystick's device driver.
wXmin
The minimum x-axis coordinate value.
wXmax
The maximum x-axis coordinate value.
wYmin
The minimum y-axis coordinate value.
wYmax
The maximum y-axis coordinate value.
wZmin
The minimum z-axis coordinate value.
wZmax
The maximum z-axis coordinate value.
wNumButtons
The number of buttons on the joystick.
wPeriodMin
The minimum supported polling frequency.
wPeriodMax
The maximum supported polling frequency.
wRmin
The minimum r-axis (rudder, fourth axis) coordinate value.
wRmax
The maximum r-axis (rudder, fourth axis) coordinate value.
wUmin
The minimum u-axis (fifth axis) coordinate value.
wUmax
The maximum u-axis (fifth axis) coordinate value.
wVmin
The minimum v-axis (sixth axis) coordinate value.
wVmax
The maximum v-axis (sixth axis) coordinate value.
wCaps
Zero or more flags specifying various capabilities or characteristics of the joystick:
JOYCAPS_HASPOV = &H10
Joystick provides point-of-view information.
JOYCAPS_HASR = &H2
Joystick provides rudder (fourth axis) information.
JOYCAPS_HASU = &H4
Joystick provides u-axis (fifth axis) information.
JOYCAPS_HASV = &H8
Joystick provides v-axis (sixth axis) information.
JOYCAPS_HASZ = &H1
Joystick provides z-axis information.
JOYCAPS_POV4DIR = &H20
Joystick's point-of-view indicator supports discrete values (e.g., centered, left, right, up, down, etc.).
JOYCAPS_POVCTS = &H40
Joystick's point-of-view indicator supports continuous degree bearings.
wMaxAxes
The maximum number of axes supported by the joystick.
wNumAxes
The number of axes currently used by the joystick.
wMaxButtons
The maximum number of buttons supported by the joystick.
szRegKey
The registry key that holds the joystick's information.
szOEMVxD
Identifies the original equipment manufacturer (OEM) of the joystick.

Used by: joyGetDevCaps

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/joycaps.html