| |
|
|
| Joystick inquire.
Parameter: P:I1 = number the Controllers: The 1. Joystick has The number 0, the second The 1, etc. P:I2 = function: what should determined go?
I2 | weight | 0 | squeezed Buttons: 1 = Button 1, 2 = Button 2, 4 = Button 3, 8 = Button 4 ... 2048 = Button 12 | 1 | X-axis (0 ... 65535; 32767 = Ruhezustand), z.B. linker Analogstick | 2 | Y-axis (0 ... 65535; 32767 = Ruhezustand), z.B. linker Analogstick | 3 | Z-axis (0 ... 65535; 32767 = Ruhezustand), z.B. right Analogstick | 4 | R-axis (0 ... 65535; 32767 = Ruhezustand), z.B. right Analogstick | 5 | u-axis (0 ... 65535; 32767 = Ruhezustand) | 6 | V-axis (0 ... 65535; 32767 = Ruhezustand) | 7 | Blickwinkel, direction (0 ... 36000; 65535 = Ruhezustand, in 100stel strain), z.B. linkes Digipad | 8 | Number of squeezed button
|
scheduler the squeezed Buttons with function 0(zero):
be$ | Hex$ | Dez.-worth | Buttonnummer | %00000001 | $01 | 1 | 1 | %00000010 | $02 | 2 | 2 | %00000100 | $04 | 4 | 3 | %00001000 | $08 | 8 | 4 | %00010000 | $10 | 16 | 5 | %00100000 | $20 | 32 | 6 | %01000000 | $40 | 64 | 7 | %10000000 | $80 | 128 | 8 | %100000000 | $100 | 256 | 9 | %1000000000 | $200 | 512 | 10 | %10000000000 | $400 | 1024 | 11 | %100000000000 | $800 | 2048 | 12 | |
Result : Integer = ermittelter worth
go several Buttons at the same time pressed, go with function 0 each Buttonwerte add. with digitalen Controllern take The Results for X- and Y-axis only The values 0, 32767 or 65536 on.
with my PSX-ähnlichen Joystick are The button 1 - 4 The four rechten button, The button 5 - 8 are the two rechten and the both left Schulterknöpfe, The button 9 and 10 the two mittleren (Select and Start) and 11 and 12 access one through pressing the Analogsticks. with the left Analogstick piloting one in the Analogmodus The X- and Y-axis, with the rechten The Z- and R-axis. The Blickwinkel becomes then over the left Digitalpad tuned: After supra = 0, to right = 9000, down = 18000 and to left = 27000. in the Digitalmodus piloting the left Digitalpad The X- and Y-axis.
<i>(Roland)</i> with one not associated Joystick is the Result all functions -1.
|
|
|
| |
|
|