Can't setup gamepad -STK 9.1&2- ubuntu 16.04

Can't setup gamepad -STK 9.1&2- ubuntu 16.04

Postby Xzu » 10 Aug 2017, 10:56

Hi.
I use a usb twin adapter for ps1&2 game-pad. All work well with every app, and I also use the Antimicro software to setup when I need.
I also used it with ubuntu12.04 and STK, all work well.

But now, with ubuntu16.04 and STK 8.1 and 8.2 [EDIT: 9.1 and 9.2 in fact], I just can't setup joystick. If I try to, I got only "axis 0" assigned to every action! When I try to set-up, I guess a little pop-up window that immediately disappear.
All go well in menu with the pad, anyway.

So, I can use antimicro to assign keyboard key topad, and then deactivate gamepad in STK, to finally use it. I've tried, that works but.. what a bad solution!
I would like to use analog axis for acceleration for example.

Here my input.xml, but don't know what to put in "id="
{l Code}: {l Select All Code}
</gamepad>

<gamepad name ="Twin USB Joystick" deadzone="4096" desensitize="0" analog="1"
         enabled="false">
    <action name="steerLeft" id="0" event="2" character="48" direction="0" range="0" />
    <action name="steerRight" id="1" event="2" character="48" direction="0" range="0" />
    <action name="accel" id="0" event="2" character="48" direction="0" range="0" />
    <action name="brake" id="0" event="2" character="53" direction="0" range="0" />
    <action name="nitro" id="0" event="2" character="53" direction="1" range="1" />
    <action name="drift" id="0" event="2" character="53" direction="1" range="1" />
    <action name="rescue" id="0" event="2" character="53" direction="1" range="1" />
    <action name="fire" id="0" event="2" character="53" direction="0" range="0" />
    <action name="lookBack" id="0" event="2" character="53" direction="1" range="1" />
    <action name="pauserace" id="0" event="2" character="53" direction="0" range="0" />
    <action name="menuUp" id="0" event="2" character="48" direction="0" range="0" />
    <action name="menuDown" id="0" event="2" character="48" direction="0" range="0" />
    <action name="menuLeft" id="0" event="2" character="48" direction="0" range="0" />
    <action name="menuRight" id="0" event="2" character="48" direction="0" range="0" />
    <action name="menuSelect" id="0" event="2" character="48" direction="0" range="0" />
    <action name="menuCancel" id="0" event="2" character="48" direction="0" range="0" />
</gamepad>
Last edited by Xzu on 20 Aug 2017, 15:00, edited 2 times in total.
Xzu
 
Posts: 24
Joined: 16 Feb 2016, 01:19

Re: Can't setup gamepad -STK 8.1&2- ubuntu 16.04

Postby MTres19 » 10 Aug 2017, 14:41

Hi, this is a known problem under Linux that should be fixed in the next release. If you're feeling adventurous, you can try compiling SuperTuxKart yourself or just wait until a binary is available at Alpha or Release Candidate phase, which should probably be soon.

Hope this helps.
User avatar
MTres19
 
Posts: 191
Joined: 17 Aug 2015, 20:15

Re: Can't setup gamepad -STK 8.1&2- ubuntu 16.04

Postby QwertyChouskie » 12 Aug 2017, 00:09

I should also mention that STK 0.8.1 is VERY old.
Contributor to/fan of STK (Upstreamed Cartoon theme, numerous random big fixes/tweaks)
User avatar
QwertyChouskie
 
Posts: 559
Joined: 29 Jun 2016, 14:57

Re: Can't setup gamepad -STK 8.1&2- ubuntu 16.04

Postby Xzu » 20 Aug 2017, 14:44

STK 8.1 and 8.2

Sorry, not 8 but 9! 9.1 and 9.2! :)

In fact look at this (in ubuntu):
For:
{l Code}: {l Select All Code}
~$ supertuxkart -v
[info   ] main: ==============================
[info   ] main: SuperTuxKart, 0.9.2.
[info   ] main: Irrlicht version 1.8.0 (1.8.0)
[info   ] main: ==============================


I got this folder:
{l Code}: {l Select All Code}
~$ cd ~/.config/supertuxkart/0.8.2/


Missing error?

To take back to my initial subject, can I fix this by editing the id="0" field in input.xml ? any advice? thx
Xzu
 
Posts: 24
Joined: 16 Feb 2016, 01:19

Re: Can't setup gamepad -STK 9.1&2- ubuntu 16.04

Postby Auria » 21 Aug 2017, 00:18

If you want to edit the gamepad config manually, "ID" is the index of the button or axis. Event is :
1 = keyboard
2 = gamepad axis
3 = gamepad button

For instance, here's my config

```
<gamepad name ="Controller (Gamepad F310)" deadzone="4096" desensitize="0" analog="1"
enabled="true">
<action name="steerLeft" id="0" event="2" character="0" direction="0" range="0" />
<action name="steerRight" id="0" event="2" character="0" direction="1" range="0" />
<action name="accel" id="0" event="3" character="52" />
<action name="brake" id="3" event="3" character="53" />
<action name="nitro" id="4" event="3" character="53" />
<action name="drift" id="5" event="3" character="53" />
<action name="rescue" id="8" event="3" character="53" />
<action name="fire" id="1" event="3" character="53" />
<action name="lookBack" id="6" event="3" character="53" />
<action name="pauserace" id="9" event="3" character="53" />
<action name="menuUp" id="1" event="2" character="52" direction="0" range="0" />
<action name="menuDown" id="1" event="2" character="53" direction="1" range="0" />
<action name="menuLeft" id="0" event="2" character="53" direction="0" range="0" />
<action name="menuRight" id="0" event="2" character="53" direction="1" range="0" />
<action name="menuSelect" id="0" event="3" character="53" />
<action name="menuCancel" id="3" event="3" character="53" />
</gamepad>
```
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Who is online

Users browsing this forum: No registered users and 1 guest

cron