Updates from Julian Foad <julianfoad@netscapeonline.co.uk>
This commit is contained in:
parent
29275ce1ec
commit
9a2c3330fb
1 changed files with 17 additions and 14 deletions
|
@ -61,12 +61,21 @@ Joystick 2 not detected
|
||||||
+------------------------------------+
|
+------------------------------------+
|
||||||
| 0000 +0.0 +0.0 -1.0 . . . |
|
| 0000 +0.0 +0.0 -1.0 . . . |
|
||||||
|
|
||||||
It appears that the number of detected buttons is represented by the number of
|
The buttons are handled internally as a binary number in which bit 0 (the
|
||||||
"0"s. Clicking the actual buttons will result in the rightmost 0 changing to
|
least significant bit) represents button 0, bit 1 represents button 1, etc.,
|
||||||
the button number output. i.e. pressing button one will change the display to
|
but this number is displayed on the screen in hexadecimal notation, so:
|
||||||
look like this: 0001. It should be noted that this is a hexadecimal (base16)
|
0001 => button 0 pressed
|
||||||
number +1. Hex numbers start at 0, so this number is incremented by one for
|
0002 => button 1 pressed
|
||||||
hopefully obvious reasons.
|
0004 => button 2 pressed
|
||||||
|
0008 => button 3 pressed
|
||||||
|
0010 => button 4 pressed
|
||||||
|
0020 => button 5 pressed
|
||||||
|
0040 => button 6 pressed
|
||||||
|
... etc. up to ...
|
||||||
|
8000 => button 15 pressed
|
||||||
|
... and ...
|
||||||
|
0014 => buttons 2 and 4 pressed simultaneously
|
||||||
|
... etc.
|
||||||
|
|
||||||
|
|
||||||
Default Joystick properties:
|
Default Joystick properties:
|
||||||
|
@ -225,7 +234,7 @@ In my case I had to make entries to put the throttle on axis2.
|
||||||
|
|
||||||
--prop:/input/js0/button4/action=adjust
|
--prop:/input/js0/button4/action=adjust
|
||||||
--prop:/input/js0/button4/control=/controls/elevator-trim
|
--prop:/input/js0/button4/control=/controls/elevator-trim
|
||||||
--prop:/iput/js0/button4/step=0.001
|
--prop:/input/js0/button4/step=-0.001
|
||||||
--prop:/input/js0/button4/repeatable=true
|
--prop:/input/js0/button4/repeatable=true
|
||||||
|
|
||||||
// Default buttons 5 and 6 to flaps
|
// Default buttons 5 and 6 to flaps
|
||||||
|
@ -235,12 +244,6 @@ In my case I had to make entries to put the throttle on axis2.
|
||||||
--prop:/input/js0/button5/repeatable=false
|
--prop:/input/js0/button5/repeatable=false
|
||||||
|
|
||||||
--prop:/input/js0/button6/action=adjust
|
--prop:/input/js0/button6/action=adjust
|
||||||
--prop:/input/js0/button6/control=/controls/flaps"
|
--prop:/input/js0/button6/control=/controls/flaps
|
||||||
--prop:/input/js0/button6/step=0.34
|
--prop:/input/js0/button6/step=0.34
|
||||||
--prop:/input/js0/button6/repeatable=false
|
--prop:/input/js0/button6/repeatable=false
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue