JOYCAPS: Unterschied zwischen den Versionen

Aus API-Wiki
Wechseln zu: Navigation, Suche
K (vb-Tags ergänzt)
K
Zeile 1: Zeile 1:
 
__NOTOC__
 
__NOTOC__
<vb>
+
<vb>Private Type JOYCAPS
Private Type JOYCAPS
+
  wMid As Integer
    wMid As Integer
+
  wPid As Integer
    wPid As Integer
+
  szPname As String * MAXPNAMELEN
    szPname As String * MAXPNAMELEN
+
  wXmin As Long
    wXmin As Long
+
  wXmax As Long
    wXmax As Long
+
  wYmin As Long
    wYmin As Long
+
  wYmax As Long
    wYmax As Long
+
  wZmin As Long
    wZmin As Long
+
  wZmax As Long
    wZmax As Long
+
  wNumButtons As Long
    wNumButtons As Long
+
  wPeriodMin As Long
    wPeriodMin As Long
+
  wPeriodMax As Long
    wPeriodMax As Long
+
  wRmin As Long
    wRmin As Long
+
  wRmax As Long
    wRmax As Long
+
  wUmin As Long
    wUmin As Long
+
  wUmax As Long
    wUmax As Long
+
  wVmin As Long
    wVmin As Long
+
  wVmax As Long
    wVmax As Long
+
  wCaps As Long
    wCaps As Long
+
  wMaxAxes As Long
    wMaxAxes As Long
+
  wNumAxes As Long
    wNumAxes As Long
+
  wMaxButtons As Long
    wMaxButtons As Long
+
  szRegKey As String * MAXPNAMELEN
    szRegKey As String * MAXPNAMELEN
+
  szOEMVxD As String * MAX_JOYSTICKOEMVXDNAME
    szOEMVxD As String * MAX_JOYSTICKOEMVXDNAME
+
End Type</vb>
End Type
 
</vb>
 
  
 
''wMid''
 
''wMid''
Zeile 86: Zeile 84:
 
:Auflistung spezieller Eigenheiten des Joysticks. Die folgenden Flags geben Aufschluss über diese Eigenheiten:
 
:Auflistung spezieller Eigenheiten des Joysticks. Die folgenden Flags geben Aufschluss über diese Eigenheiten:
 
:
 
:
<vb>
+
<vb>Const JOYCAPS_HASZ = 1
Const JOYCAPS_HASZ = 1
+
Const JOYCAPS_HASR = 2
Const JOYCAPS_HASR = 2
+
Const JOYCAPS_HASU = 4
Const JOYCAPS_HASU = 4
+
Const JOYCAPS_HASV = 8
Const JOYCAPS_HASV = 8
+
Const JOYCAPS_HASPOV = 16
Const JOYCAPS_HASPOV = 16
+
Const JOYCAPS_POV4DIR = 32
Const JOYCAPS_POV4DIR = 32
+
Const JOYCAPS_POVCTS = 64</vb>
Const JOYCAPS_POVCTS = 64
 
</vb>
 
  
 
''wMaxAxes''
 
''wMaxAxes''

Version vom 13. Mai 2008, 14:20 Uhr

<vb>Private Type JOYCAPS

  wMid As Integer
  wPid As Integer
  szPname As String * MAXPNAMELEN
  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
  wCaps As Long
  wMaxAxes As Long
  wNumAxes As Long
  wMaxButtons As Long
  szRegKey As String * MAXPNAMELEN
  szOEMVxD As String * MAX_JOYSTICKOEMVXDNAME

End Type</vb>

wMid

Eindeutige Kennzeichnung des Herstellers eines Joysticks [1]

mPid

Eindeutige Kennzeichnung des Joystick-Modells [2]

szPname

Nullterminierter String, der den Produktnamen des Joysticks enthält.

wXmin

Minimal mögliche X-Koordinate

wXmax

Maximal mögliche X-Koordinate

wYmin

Minmal mögliche Y-Koordinate

wYmax

Maximal mögliche Y-Koordinate

wZmin

Minimal mögliche Z-Koordinate

wZmax

Maximal mögliche Z-Koordinate

wNumButtons

Anzahl der Knöpfe des Joysticks

wPeriodMin

Minimale Frequenz für Polling per joySetCapture

wPeriodMax

Maximale Frequenz für Polling per joySetCapture

wRmin

Minimal mögliche R-Koordinate (vierte Achse)

wRmax

Maximal mögliche R-Koordinate (vierte Achse)

wUmin

Minimal mögliche U-Koordinate (fünfte Achse)

wUmax

Maximal mögliche U-Koordinate (fünfte Achse)

wVmin

Minimal mögliche V-Koordinate (sechste Achse)

wVmax

Maximal mögliche V-Koordinate (sechste Achse)

wCaps

Auflistung spezieller Eigenheiten des Joysticks. Die folgenden Flags geben Aufschluss über diese Eigenheiten:

<vb>Const JOYCAPS_HASZ = 1 Const JOYCAPS_HASR = 2 Const JOYCAPS_HASU = 4 Const JOYCAPS_HASV = 8 Const JOYCAPS_HASPOV = 16 Const JOYCAPS_POV4DIR = 32 Const JOYCAPS_POVCTS = 64</vb>

wMaxAxes

Die maximale Anzahl an Achsen, die vom Joystick unterstützt werden

wNumAxes

Die Anzahl an Achsen, die momentan verwendet werden.

wMaxButtons

Anzahl maximal unterstützer Buttons

szRegKey

Nullterminierter String, der den Eintrag des Joysticks in der Registry beinhaltet.

szOEMVxD

Nullterminierter String, der den Joystick-Treiber-Hersteller identifiziert

Verweise

MSDN Library - JOYCAPS

Quellen

MSDN Library - JOYCAPS

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