-
Notifications
You must be signed in to change notification settings - Fork 114
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
[QUESTION] Gamepad Axes Are Swapped, Seemingly Unresponsive AND Strange Behavior on Ubuntu and Chrome #373
Comments
You mean gamepad support in Chrome browsers? I will work on this problem during v0.10, and it should land in v0.11 in the worst case. The current work around is to use the controller in wired mode for the browser. There is a possible work-around using jscal and remapping the buttons order to match what Chrome expects. But that will mess up any other software which uses the jsdev devices (SDL does not, thus Steam and games running through Proton are not affected, native games using SDL are neither affected). The procedure with jscal is described in troubleshooting but you will most likely need to use a different order of buttons and insert fake buttons to account for the buttons that Chrome skips. When I tried that in the past, jscal usually crashed so I'm not sure if there is a way. Chrome tries to re-implement most of the same abstraction that SDL does but they do it in an invalid way by reading mappings from evdev, then using some hard-coded transformation tables per gamepad model and finally reading values from jsdev, instead of either using evdev only (which would work perfectly fine because it also returns values), or reading the button and axis names AND values from jsdev only (I've looked at the source code of Chromium, it's a mess). As a second option, Firefox doesn't seem to show this completely broken behavior but I'm not sure if it supports the cloud gaming services you're using. A third option may be to try using the Xbox360 emulation branch from this repository. It may fake the model well enough for Chrome to not apply its crazily broken assumptions to the mapping. |
I tried it on Firefox - same issues. it sounds like OS/driver issue. I uninstalled v.9 and installed v.8 of the driver - web works but Steam now has this messy buttons issue! So I decided to use XBox controller for web and old PS3 controller for Steam on Ubuntu for the time being. Looking forward to the next version of your driver! |
BTW: "Xbox Core" - is this a new controller model? Could you post the diagnose data as requested by the issue reporting wizard? |
xbox core - seems to be one of two currently sold, core and elite
sorry, I do not have time for that, busy with work + I got 2nd core controller with usb to usb-c cable, it works fine with cable so I ordered another very long cable for 1st controller. |
i just wanted to second that i have encountered this issue as well. i also encounter the same button mapping problem in sdl2 games as well unless i export the below: |
Chrome is mostly unfixable as it considers the Xbox controllers to have dead buttons which our driver does not have. The issue with SDL is known and |
Switching to PID 0x028E seems to successfully evade the mappings in Proton, and thus probably SDL. Proton seems to do the same for Steam virtual controllers, and it seems to also fix gamepad handling in Chrome. Maybe-fixes: atar-axis#379 Maybe-affects: atar-axis#385 Maybe-affects: ValveSoftware/steam-for-linux#8463 (comment) See-also: atar-axis#283 See-also: ValveSoftware/wine@7ea1cc2 Fixes: atar-axis#373 Signed-off-by: Kai Krakow <kai@kaishome.de>
Switching to PID 0x028E seems to successfully evade the mappings in Proton, and thus probably SDL. Proton seems to do the same for Steam virtual controllers, and it seems to also fix gamepad handling in Chrome. Maybe-fixes: #379 Maybe-affects: #385 Maybe-affects: ValveSoftware/steam-for-linux#8463 (comment) See-also: #283 See-also: ValveSoftware/wine@7ea1cc2 Fixes: #373 Signed-off-by: Kai Krakow <kai@kaishome.de>
I use recently purchased Xbox Core controller (official. sold by Microsoft on Amazon) on Ubuntu 18.04 with the latest Chrome. I used your driver to make it work finally. I get all buttons messed up in cloud games (tried several). jstest-gtk and joystick web testing website show the buttons are messed up too. At the same time Steam games work perfectly fine with valve default configs. Also I tested same controller on my macbook with chrome for cloud games - it works fine for both stadia and xcloud. In your troubleshooting you say "IMPORTANT NOTE: ... There is currently no known work-around." Does it mean I do not need to go through debugging and give up on that?
The text was updated successfully, but these errors were encountered: