this post was submitted on 12 May 2025
116 points (99.2% liked)
Linux Gaming
18627 readers
367 users here now
Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME
away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.
This page can be subscribed to via RSS.
Original /r/linux_gaming pengwing by uoou.
No memes/shitposts/low-effort posts, please.
Resources
WWW:
Discord:
IRC:
Matrix:
Telegram:
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It is all generic layers, the base USB stuff is called a "Human Interface Device", controllers/keyboards/mice/etc. all show up as a HID to the OS. But you need some way to standardise the input and map the device side events to the host side, so the OS will have a mapping layer above the base USB layer that turns a generic HID into a "controller device" that an app can use.
As you can see from the patch, that's all they're doing. They're adding the USB IDs of these controllers to the mapping layer so instead of being shown as a "Generic HID", they're shown as "Generic Xbox Controller". Doing so also means the controller layer can drive the devices specifically, e.g. xbox controllers need a special handshake to enable the xbox button, the base generic input layer doesn't need to know that stuff.
Ah, that clears it up. Thank you for taking the time out to educate a random idiot.