Git Product home page Git Product logo

Comments (4)

kakra avatar kakra commented on July 16, 2024 1

The battery indicator works for some gamepads. And it works for Logitech mice and keyboards (using K360 and M600 here). So generally, the infrastructure is there.

It also works for the Xbox controller if binding the controller to hid-microsoft. But it only reports 50% with a warning that batteries are almost depleted and, then it may (I cannot remember) to 25%, shortly after it turns off.

Rumble in Steam itself doesn't work for identify. This only works for the original Steam controller (which I also own). Also, my F710 doesn't rumble for identify. This is probably a Steam Linux implementation detail. Technically, it could work but isn't properly implemented.

In games, tho, rumble works.

There may be two pitfalls:

The controller may be mapped differently depending if you're running games through the desktop client or through big picture mode. Steam is able to handle keyboard/mouse emulation when you add a non-steam game to the library. So everything seems to work here, I think Steam injects a patched libsdl2 or environment settings for SDL into the games run through Steam.

And there's the next pitfall: Steam injects SDL-specific environment variables. The controller may have added a "wrong" mapping to your Steam config file (one based on the original hid-microsoft mapping, as the controller binds to that driver in SteamOS). You can correct this:

  1. Completely stop the Steam client
  2. Locate your Steam global config file: ~/.steam/steam/config/config.vdf
  3. Open the file and find a string "SDL_GamepadBind"
  4. These are SDL gamepad bindings, find the entry with your controller name: Xbox One Wireless Controller
  5. Replace it with the following entry:
050000005e040000fd02000003090000,Xbox One Wireless Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,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,

Take care not to strip the closing " quote sign.

You can now start Steam again, your controller should have a standard mapping now in Steam. If you already made controller mappings in Big Picture Mode, you may need to adjust them.

The id of the entry should be the same for your controller but it may vary. If it does, keep the id of your original entry, only replace the key and axes mapping. Rumble should work in games with this entry.

from xpadneo.

kakra avatar kakra commented on July 16, 2024 1

There's also a small PR I submitted to wine: wine-mirror/wine#10

It enables the xpadneo driver to be correctly recognized in latest wine versions. That way, wine sees the correct mapping throughout all games. Steam in wine may need the same SDL mapping correction as shown above. Rumble is fully supported there, too, tested primarily with Witcher 3 currently.

The controller shows some strange behavior in some Steam games running through wine: The right stick emulates a mouse but still sends controller reports. This confuses some games, Dishonored and Kingdoms of Amalur are such examples. I'm pretty sure this is something that Steam does (it seems to use a controller template that enables mouse camera through the right stick). Since there is no Big Picture Mode supported in wine, it cannot be corrected currently, at least I'm yet to find out which config file to edit, and how.

But this means that the same quirk may apply to native Linux Steam. It's easy to fix this: Just disable controller configuration support for the Xbox controller in Big Picture Mode.

from xpadneo.

atar-axis avatar atar-axis commented on July 16, 2024

The battery indicator works for some gamepads. And it works for Logitech mice and keyboards (using K360 and M600 here). So generally, the infrastructure is there.

Perfect! Thanks!

Rumble in Steam itself doesn't work for identify. This only works for the original Steam controller (which I also own). Also, my F710 doesn't rumble for identify. This is probably a Steam Linux implementation detail. Technically, it could work but isn't properly implemented.

Very useful too, thank you!

from xpadneo.

atar-axis avatar atar-axis commented on July 16, 2024

I will close this as it is the same as the battery report thing - missing support by steam, not the driver.

from xpadneo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.