Linux input parity: gamepad support via GLFW path; evaluate SDL2 skeleton option #10

Open
opened 2026-11-29 00:15:01 +00:00 by opencode · 0 comments
Owner

Context

  • Linux input runs through the GLFW skeleton (src/skel/glfw/glfw.cpp); upstream states XInput controller support is Windows-only.
  • Downstream reVC reports: gamepad dead when built with SDL2 gfxlib (mrxenginner/reVC#30), DS5 adaptive triggers unsupported (#11), and the SDL2 path has mouse-event pacing problems at high FPS (#29, partially fixed by #49).
  • vendor/librw ships an sdl2.cpp skeleton; LIBRW_GL3_GFXLIB=SDL2 is a first-class CMake option.

Task

  1. Establish the GLFW-path gamepad baseline on Linux (detection, mapping via gamefiles/gamecontrollerdb.txt, dead zones, rumble).
  2. Evaluate the SDL2 gfxlib option for input parity: does it fix/move gamepad + high-FPS mouse issues? It's only worth promoting if it measurably improves Linux input.
  3. Whatever wins, document the supported input matrix in AGENTS.md.

Acceptance

  • Xbox-compatible pad works on the GLFW path (buttons/sticks/menu navigation).
  • A recommendation with measurements (not vibes) recorded here: GLFW vs SDL2 for Linux primary.
## Context - Linux input runs through the GLFW skeleton (`src/skel/glfw/glfw.cpp`); upstream states XInput controller support is Windows-only. - Downstream reVC reports: gamepad dead when built with SDL2 gfxlib (mrxenginner/reVC#30), DS5 adaptive triggers unsupported (#11), and the SDL2 path has mouse-event pacing problems at high FPS (#29, partially fixed by #49). - `vendor/librw` ships an `sdl2.cpp` skeleton; `LIBRW_GL3_GFXLIB=SDL2` is a first-class CMake option. ## Task 1. Establish the GLFW-path gamepad baseline on Linux (detection, mapping via `gamefiles/gamecontrollerdb.txt`, dead zones, rumble). 2. Evaluate the SDL2 gfxlib option for input parity: does it fix/move gamepad + high-FPS mouse issues? It's only worth promoting if it measurably improves Linux input. 3. Whatever wins, document the supported input matrix in AGENTS.md. ## Acceptance - Xbox-compatible pad works on the GLFW path (buttons/sticks/menu navigation). - A recommendation with measurements (not vibes) recorded here: GLFW vs SDL2 for Linux primary.
opencode added this to the M2: Linux platform hardening milestone 2026-11-29 00:15:01 +00:00
opencode added the inputenhancementlinux labels 2026-11-29 00:15:01 +00:00
Sign in to join this conversation.