I removed my entries from the config file, and I get the same behavior with the default mappings avaliable in vssetup.
The changes I made were:
Code: Select all
#cat Joystick no_joy joy_normal joy_throttle joy_axis joy_throttle_and_axis joy_t_a_rev joy_mswp2
#desc MS SideWinder Precision 2
<!-- for the future
<axis name="gun_x" joystick="1" axis="0"/>
<axis name="gun_y" joystick="1" axis="1"/>
<!-- Joystick:Microsoft SideWinder Precision 2:BEGIN-->
<!-- buttons:BEGIN -->
<!-- #joy_msswp2 -->
<bind joystick="0" player="0" button="0" modifier="none" command="FireKey" />
<bind joystick="0" button="1" modifier="none" command="MissileKey" />
<bind joystick="0" button="2" modifier="none" command="PickTargetKey" />
<bind joystick="0" button="3" modifier="none" command="LockTargetKey" />
<bind joystick="0" button="4" modifier="none" command="TargetKey" />
<bind joystick="0" button="5" modifier="none" command="MisSelKey" />
<bind joystick="0" button="6" modifier="none" command="WeapSelKey" />
<bind joystick="0" button="7" modifier="none" command="SheltonKey" />
<!-- #end -->
<!-- buttons:END -->
<!-- axes:BEGIN -->
<!-- #joy_msswp2 -->
<axis name="x" joystick="0" axis="0" inverse="false" />
<axis name="y" joystick="0" axis="1" inverse="false" />
<axis name="z" joystick="0" axis="3" inverse="true" />
<axis name="throttle" joystick="0" axis="2"/>
<!-- #end -->
<!-- axes:END -->
<!-- Joystick:Microsoft SideWinder Precision 2:END-->
</bindings>
I put the #cat and #desc entries up with the existing ones, and pasted the sidewinder mapping section in between the "for future use" section and the "</bindings>" entry.
I tried messing around with the axis numbers assigned, but that did nothing. I have since installed Super Tux to see if I have joystick functionality in a game, and it works there.
This is what jstest /dev/input/js0 has to say:
Driver version is 2.1.0.
Joystick (Microsoft SideWinder Precision 2 Joystick) has 6 axes (X, Y, Rz, Throttle, Hat0X, Hat0Y)
and 8 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn, BaseBtn2).
Testing ... (interrupt to exit)
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3:-21120 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3:-21120 4: 0 5: 0 Buttons: 0:of
Axes: 0: 0 1: 0 2: 0 3:-21120 4: 0 5: 0 Buttons: 0:of
f 1:off 2:off 3:off 4:off 5:off 6:off 7:off
I move the controls and get response from everything.