Page 1 of 1

Joystick help with 0.5.1 on Xubuntu 12.04?

Posted: Sat Mar 01, 2014 11:26 pm
by SamSpacely
I've been looking around for a way to get my MS SideWinder Precision 2 to work with Vega Strike on Xubuntu 12.04, and I haven't been able to so far. Where should I start? Using the material from "http://vegastrike.sourceforge.net/wiki/ ... figuration" didn't work for me. Thanks.

Re: Joystick help with 0.5.1 on Xubuntu 12.04?

Posted: Sat Mar 01, 2014 11:32 pm
by klauss
It just doesn't work at all or does it work but not well?

Re: Joystick help with 0.5.1 on Xubuntu 12.04?

Posted: Sun Mar 02, 2014 12:47 am
by SamSpacely
I Tried using the ready-made configurations in vssetup, and copy and pasting the new entries from the wiki, and I have a constant throttle value in the game that the keyboard has no control over. None of the axes move anything, and the buttons do nothing. Jstest-gtk shows the controller, and vssderr.txt shows js0. I've included the vssderr and vssdout text files.

Re: Joystick help with 0.5.1 on Xubuntu 12.04?

Posted: Sun Mar 02, 2014 2:03 am
by SamSpacely
By the way, I installed off of the GetDeb.net repository, rather than compile from source.

Re: Joystick help with 0.5.1 on Xubuntu 12.04?

Posted: Sun Mar 02, 2014 4:07 am
by klauss
That seems very strange. What you describe seems like an axis mapping issue, except for the buttons not working. Did you try fiddling with axis mapping?

Re: Joystick help with 0.5.1 on Xubuntu 12.04?

Posted: Sun Mar 02, 2014 6:21 am
by loki1950
Or post the relevant section of the config file so we can have a look at your edits they might not be valid.If your text editor has syntax highlighting set to XML to be sure.

Enjoy the Choice :)

Re: Joystick help with 0.5.1 on Xubuntu 12.04?

Posted: Sun Mar 02, 2014 5:10 pm
by TBeholder
Either way, fixed throttle means it's mapped on something wrong - absent (like a mouse's 3rd axis) or not throttle. Given that no other axis responds, it's the former.
Does this joystick with the same drivers, etc work in other games?

Re: Joystick help with 0.5.1 on Xubuntu 12.04?

Posted: Sun Mar 02, 2014 8:59 pm
by SamSpacely
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.

Fixed for me...

Posted: Mon Mar 03, 2014 2:33 am
by SamSpacely
Well, I removed the playdeb.net version, and installed the opensuse version from the homepage, and the joystick works fine in it. Something is apparently off in the playdeb version. Thanks for the help.

Re: Joystick help with 0.5.1 on Xubuntu 12.04?

Posted: Wed Mar 05, 2014 6:13 pm
by klauss
I thought playdeb was pointing to the OBS deb. I guess not. Thanks for letting us know :)