I'm trying to play The W​alking D​ead on Ubuntu 12.10 with my Xbox360 controller like I do in Windows. The thing is the game start and only lets my use the mouse and keyboard. In windows when the control is unplugged it start like that and when it's plugged in it's start in the Xbox360 mode (different bottons and so on).

I tried installing the Xbox360 driver as shown here but the ppa is missing.

I also tried installing Jtest and it recognizes the controller and all, but still I can't use it in the game.


Your problem here isn't with Ubuntu or The W​alking Dead, it's with Wine. That's the compatibility layer you're using to be able to play a Windows game on a Linux operating system.

I've already asked about this but unfortunately Wine just doesn't support joysticks in any meaningful at the moment. I'm sure there are some edge cases but there you go.

There is one workaround that I know of that may work for some things: Mapping the joystick into keyboard controls. It's messy as hell, and you lose the resolution of the sticks but for some things, this will be enough. You'll need to use xboxdrv for this, so blocking the built-in xpad module may be necessary.

Here's an example:

xboxdrv --trigger-as-button --ui-axismap x2=ABS_Z,y2=ABS_RZ --ui-buttonmap A=BTN_B,B=BTN_X,X=BTN_A,TR=BTN_THUMBL,TL=BTN_MODE,GUIDE=BTN_THUMBR 

I've lifted that almost verbatim from a thread on the xboxdrv forum. It's targeting Rage so in all likelihood it's not going to be perfect for you and you'll need to play around with the mappings.

| improve this answer | |
  • I tried using it in Team Fortress 2 and it detects it and all, but the right sticks only moves horizontally. Here are the details Thanks for your aswear! – Pablo Viollier Jan 4 '13 at 16:35

Not the answer you're looking for? Browse other questions tagged or ask your own question.