mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-16 02:05:46 +00:00
@Schuay asked for a revert: see [here](https://github.com/Ryubing/Issues/issues/394#issuecomment-4359848762) revert Disable SDL3 HIDAPI Switch driver when hid_nintendo is loaded On Linux, the hid_nintendo kernel module creates separate evdev devices for gamepad input and IMU (motion sensors), which SDL3's evdev backend properly combines. When HIDAPI is active instead, it conflicts with the kernel driver, breaking motion/gyro input and controller hotplugging (especially via wireless dongles). Automatically detect hid_nintendo via /sys/module and fall back to the evdev backend. Can still be overridden with the env var SDL_JOYSTICK_HIDAPI_SWITCH=1. Reviewed-on: https://git.ryujinx.app/projects/Ryubing/pulls/46