Page MenuHome

Joystick is not working on Linux
Closed, ResolvedPublic


System Information
Ubuntu 14.04 64bits / Windows 7 64bits

Blender Version
Broken: 2.73
Worked: 2.72 and before

Short description of error
Joystick doesn't work on Linux but is working on Windows in Blender 2.73.
Joystick Sensor does nothing and bge.logic.joysticks returns None.



Event Timeline

Vincent Girès (VincentG) raised the priority of this task from to Needs Triage by Developer.
Vincent Girès (VincentG) updated the task description. (Show Details)
Vincent Girès (VincentG) set Type to Bug.

Actually, it doesn't work that well in Windows either : if I have only one Blender open, the joystick is not recognized. If I launch a second Blender application, the Joystick is recognized the first time I run the BGE, but if I run it a second time, or more, it is not recognized anymore.

Here is an example blend file that shows the issue:

The cube should move on mouse & joystick input.

Tested on Kubuntu 14.10, self-compiled Blender 2.73 (0ff56ca2aa1cc258ee2bd88b7676fbfd0482777f), and it works fine there. However, testing with the official 2.73a shows that it doesn't work there. Joystick also doesn't work on

It seems to be a build issue, I'll investigate that.

Sybren A. Stüvel (sybren) lowered the priority of this task from Needs Triage by Developer to Confirmed, Medium.Feb 15 2015, 2:17 PM

The joystick sensor requires SDL 2.0 to be installed on your system. Could you try sudo apt-get install libsdl2-2.0-0 (or in any other way install the libsdl2-2.0-0 package) and try again?

PS: I'm focusing on the Linux issue right now, as that's what you reported initially. The Windows issue is probably a different one than this issue, so please report that in a separate ticket.

Yes it's working now fine with SDL 2.0 installed.
I will try to reproduce the issue I had on Windows and report it.

Marking this as resolved. D1112 is a start to get cases like this easier to diagnose.