Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

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.

share|improve this question

marked as duplicate by Jorge Castro, Kevin Bowen, Eric Carvalho, Braiam, Thomas W. Sep 26 '13 at 2:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Also try qjoypad. This answer might help you: askubuntu.com/questions/140617/how-do-i-use-a-gamepad/… –  rekh127 May 8 '13 at 20:53

1 Answer 1

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.

share|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.