Joystick and gamepad support: technical explanation?

Joystick and gamepad support: technical explanation?

Postby xeno74 » 23 Oct 2014, 17:41

Hi,

I need some technical background knowledge about STK and joysticks and gamepads. Linux actually has 2 different input systems for Joysticks. The original 'Joystick' interface and the newer 'evdev' based one. '/dev/input/jsX' maps to the 'Joystick' API interface and /dev/input/eventX maps to the 'evdev' ones (this also includes other input devices such as mice and keyboards). Which system use STK? Does Irrlicht manage the joystick and gamepad support in STK?
I have a problem with joysticks in STK. STK recognize my joystick but it doesn't recognize if I press a button.

Thanks in advance,

Christian
User avatar
xeno74
 
Posts: 356
Joined: 10 Dec 2009, 20:38

Re: Joystick and gamepad support: technical explanation?

Postby xeno74 » 23 Oct 2014, 18:14

If I run supertuxkart --gamepad-visualisation, all buttons are responsive.
User avatar
xeno74
 
Posts: 356
Joined: 10 Dec 2009, 20:38

Re: Joystick and gamepad support: technical explanation?

Postby hiker » 24 Oct 2014, 11:32

Hi,

yes, irrlicht handles all joysticks for us. You would need to look into that code to find out the details.

xeno74 {l Wrote}:If I run supertuxkart --gamepad-visualisation, all buttons are responsive.

if the buttons are shwon with gamepad visualisation, they should work in game. So you can't assign the buttons to certain functions?

Could you try running with --gamepad-debug. It should print the status of all buttons (that will be a lot of output potentially).

Have you tried to remove your input.xml file, perhaps something is wrong there? Any other strange devices in the device list?

Cheers,
Joerg
hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Who is online

Users browsing this forum: Google [Bot] and 1 guest