ekunuke / vagante_issues

Public issues-only github repo
3 stars 0 forks source link

xbox360 controller not detected on Linux #135

Open lel-amri opened 7 years ago

lel-amri commented 7 years ago

Hi,

My xbox360 controller is not recognized by the game:

11:11:07.373 INFO   : Initializing EJoystick...
11:11:07.373 DEBUG  : Input::Input(sf::Window*)
11:11:07.373 DEBUG  : Input::reset(-1)
11:11:07.373 DEBUG  : void Input::reset(int) Polling connected joysticks...
11:11:07.374 DEBUG  : void Input::reset(int) Done polling connected joysticks. 0 joysticks found.
11:11:07.374 INFO   : Input initialized.

dmesg shows that the controller has been plugged-in:

[ 6982.950173] input: Xbox 360 Wireless Receiver as /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/input/input31

The program from https://github.com/Grumbel/sdl-jstest also detect the controller and can read the inputs from it:

Found 1 joystick(s)

Joystick Name:     'Xbox 360 Wireless Receiver'
Joystick GUID:     030000005e040000a102000000010000
Joystick Number:    0
Number of Axes:     6
Number of Buttons: 15
Number of Hats:     1
Number of Balls:    0
GameController:
  Name:    'X360 Wireless Controller'
  Mapping: '030000005e040000a102000000010000,X360 Wireless Controller,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b11,dpright:b12,dpup:b13,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,'

I am using gentoo and I have the kernel labelled 4.9.6-gentoo-r1.

I don't know how the controller is handled by the game so this issue may be missing some informations.

andrewdbanks commented 5 years ago

I'm having the same problem, but I've found that you can get it working using Big Picture Mode mappings as a workaround. This is very far from ideal, and I'd like to be able to launch the game without BPM as well. This occurred on three separate machines, each one running Ubuntu. One of them was using a third party Xbox 360 controller, and the other two were using an Xbox One controller. Attempting to map the buttons will say "Hold a button", and the debugging info at the top of the screen will confirm that it detects the controller, but it won't map like it's supposed to.