[conf] add ms-sidewinder joystick

This commit is contained in:
Felix Ruess
2013-06-08 14:09:54 +02:00
parent e313b55892
commit 2556e6e84b
+59
View File
@@ -0,0 +1,59 @@
<!-- Microsoft Microsoft SideWinder Precision Pro (USB)
Joystick has four axes:
axis 0: roll
axis 1: pitch
axis 2: yaw
axis 3: throttle (reversed)
axis 4: hat switch left/right (right is positive)
axis 5: hat switch up/down (down is positive)
It has 9 buttons.
b0 - fire
b1 - secondary fire
b2 - upper right thumb button
b3 - lower right thumb button
b4 - button A
b5 - button B
b6 - button C
b7 - button D
b8 - shift button
-->
<joystick>
<input>
<axis index="0" name="roll" limit="1.00" exponent="0.7" trim="0"/>
<axis index="1" name="pitch" limit="1.00" exponent="0.7" trim="0"/>
<axis index="2" name="yaw" limit="1.00" exponent="0.7" trim="0"/>
<axis index="3" name="throttle"/>
<axis index="4" name="hat_lr"/>
<axis index="5" name="hat_ud"/>
<button index="0" name="fire"/>
<button index="1" name="fire2"/>
<button index="2" name="up"/>
<button index="3" name="down"/>
<button index="4" name="A"/>
<button index="5" name="B"/>
<button index="6" name="C"/>
<button index="7" name="D"/>
<button index="8" name="shift"/>
</input>
<messages period="0.1">
<!--message class="datalink" name="RC_4CH" send_always="true">
<field name="mode" value="1-fire+A"/>
<field name="throttle" value="Fit(-throttle,-127,127,0,127)"/>
<field name="roll" value="roll"/>
<field name="pitch" value="pitch"/>
<field name="yaw" value="yaw"/>
</message-->
<message class="datalink" name="RC_3CH" send_always="true">
<field name="throttle_mode" value="0"/>
<field name="roll" value="roll"/>
<field name="pitch" value="pitch"/>
</message>
</messages>
</joystick>