input, run.sh: fix Proton controller group access, VICTORY_ONE_PAD default, and fullscreen mouse re-lock #176
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!176
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-176"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@liomaroliveira on GitHub · 2026-12-02 10:14 UTC · original
liomaroliveira:fix/proton-controller-and-mouse-capture→main· +27 −3 · 3 files · 3 commits · merged 2026-12-02 19:14 UTCWhat
gameinput.rs: EnableVICTORY_ONE_PADby default (parse_one_pad:Noneor anything other than"0"->true) and add a unit test.run.sh: Skipunshare -rnm --propagation privatewhenPROTON_DIRis set, keeping thesystemd-runmemory scope and menu restart loop intact.mouse.rs: OnWM_LBUTTONDOWN/WM_RBUTTONDOWN, ifCAPTURE.window == hwndandlast_raw.is_none(), callrelease(hwnd)beforeacquire(hwnd)to re-lock fullscreen mouse capture.Why
VICTORY_ONE_PADdefault: The docstring onone_pad()already documents it as on by default (VICTORY_ONE_PAD=0to disable), but the implementation checked== "1". WithoutVICTORY_ONE_PAD=1set manually, hotplugging a pad or waking one from sleep leaves the title on its controller-disconnected screen.run.shunder Proton: Complements #129 (SDL_JOYSTICK_DISABLE_UDEV=1).tools/play-wine.shonly bind-mountswineserverwhenPROTON_DIRis unset; under Proton,unshare -rnmis not needed for mounts, and an unprivileged user namespace (-r) drops supplementary groups (input->nobody), causingEACCESon/dev/input/event*and/dev/input/js*owned byroot:inputwithoutuaccessACLs.VICTORY_FULLSCREEN=1(Proton / Wayland / XWayland), initialWM_SETFOCUS/WM_ACTIVATEcan setCAPTURE.windowbefore raw input starts (last_raw.is_none()), causing subsequent clicks to hitacquire()'s early return and leaving mouse look stuck until Alt-Tab.Checked
./build.sh(x86_64-pc-windows-msvcrelease cross-compile) passed cleanly.cargo test -p xtaskswitches::documented_switches_are_readpassed.proton-cachyos-slr11.0-20261015) withVICTORY_FULLSCREEN=1: verified supplementaryinputgroup is preserved under Proton, controller hotplug works without controller-disconnected lock, and clicking in fullscreen re-locks mouse look.