Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Xbox 360 USB Controller and D-Pad #50

Open
jreckner opened this issue Dec 13, 2015 · 3 comments
Open

Issues with Xbox 360 USB Controller and D-Pad #50

jreckner opened this issue Dec 13, 2015 · 3 comments

Comments

@jreckner
Copy link

I have been very successful in getting the xbox360 controller to work on Ubuntu 14.04.3 LTS.
Once I set TRIGGER_AS_BUTTON=false I had no issues with any buttons, sticks or dpad in Kodi 15/XMBC

However, once I fire up Steam in Big Picture mode, I lose the dpad competely. but only the dpad.

jstest-gtk shows everything working. So I assume its something wrong with Steam itself.

However, I was able to made the dpad work once by editing the /etc/init/xboxdrv.conf directly and making the following change:

--ui-buttonmap du=KEY_UP --ui-buttonmap dd=KEY_DOWN --ui-buttonmap dl=KEY_LEFT --ui-buttonmap dr=KEY_RIGHT

this was added the xboxdrv line like:

xboxdrv --daemon --silent --dbus disabled --ui-buttonmap du=KEY_UP --ui-buttonmap dd=KEY_DOWN --ui-buttonmap dl=KEY_LEFT --ui-buttonmap dr=KEY_RIGHT $XBOXDRV_OPTIONS $PAD_OPTIONS $CONTROLLER0_OPTIONS --next-controller $PAD_OPTIONS $CONTROLLER1_OPTIONS --next-controller $PAD_OPTIONS $CONTROLLER2_OPTIONS--next-controller $PAD_OPTIONS $CONTROLLER3_OPTIONS

After making the above change which I assume is related to the DD, DU, DL, DR bindings being different then whats loaded by default, the dpad now worked BUT I lost all other bindings.

I then tried adding only these changes to /etc/defaults/xboxdrv

XBOXDRV_OPTIONS="--ui-buttonmap DU=KEY_UP --ui-buttonmap DD=KEY_DOWN --ui-buttonmap DL=KEY_LEFT --ui-buttonmap DR=KEY_RIGHT"

I also tried with a --ui-clear in the beginning

My question is this: How is the dpad configured by default and is there a way to switch that binding from its default to these DU, DD, DL, DR KEY_ bindings?

@raelgc
Copy link
Owner

raelgc commented Dec 13, 2015

Hi @jreckner, thanks for digging on this!

We're just using the mimic_xpad as true.

Can you open a pull request with all these edits? So I can update the package.

@jreckner
Copy link
Author

I never quite got it working, the dpad worked but all other mappings were missing.

I think to properly get everything working I would need to create a mapping for all Xbox360 Controller buttons and axis to intercept all the mappings supplied by mimic_xpad as true. It would be easier if there was a way to generate a config equal to the mimic_xpad config and then simply alter the dpad buttons. I don't know how to do this. :(

However, I decided to checkout the steamos-xpad-dkms package and it worked out of the box for me, therefore I have not pursued a xboxdrv solution any further.

@geekycow
Copy link

geekycow commented Jan 1, 2016

Same here. I could get everything working except for the dpad under steam after setting mimic_xpad to true and trigger_as_button to false.

Curiously, the mappings under the Joystick settings app are correctly, and if I run sudo xboxdrv via the command line with these options and set the device name to "Xbox 360 Wireless Controller (XBOX)" (exactly the name given by xpad) then it works under Steam, but not here.

Given that Steam is a pretty major usage of xbox360 controllers under Linux, both native and streaming, this is a bit of a show stopper. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants