Input: choose the loose controls diagram by active gamepad (stacked on #312) #1179
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1179"
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?
Imported from Marvisak/VIctory. Originally posted by Razdva122 on 2026-11-24T16:21:13Z.
Draft for the active-controller and loose controls-diagram portion of #187. This branch includes DaviTostes’s SDL3 backend from #312 with its original authorship. The input hub selects an Xbox, PlayStation, Nintendo or Steam profile when a physical controller produces deliberate input. Review the controller diagram changes on top of main and #312
The tester supplies the package-relative path in
VICTORY_GLYPH_FILEand an external directory inVICTORY_GLYPH_DIR. For example, with the synthetic pathui/controls.bin, the PlayStation replacement isplaystation/controls.binunder that directory. A matching DirectStorage open uses the active profile’s file if available. Other paths use the usual package lookup. The runner resolves a relative profile directory at configuration time, so the same pack stays selected if the guest changes its working directory. Each already-open handle keeps its contents. The README documents the two settings in one table row.Synthetic tests cover controller selection, invalid or unrelated paths, fallback to the package file and reads across profile changes. The game-specific path has been removed from both commits. Maintainer review of #312 and the asset-replacement scope in #187 is still pending. A title run with a real pack is needed to confirm that opening the settings page reads the configured loose file and displays the expected diagram after switching controllers. The archived HUD and live refresh of already-loaded UI remain open in #187. Scope discussion
AI-assisted with Codex.
At
8a485ee, the full Windows workspace suite and both Clippy configurations passed. A separate diagnostics build ran the diagram and DirectStorage tests. Workspace CI · Diagnostics testsImported from Marvisak/VIctory. Originally posted by Kabosune on 2026-11-24T16:29:04Z.
Nice work on the active-controller tracking. The hysteresis and ignoring the Steam virtual pad are good touches. Two small things:
sdl_profilematches rawSDL_GamepadTypevalues (4..=6,7..=11,12). SDL has added types between releases, so it might be safer to use named constants or check the loaded SDL version, so a newer or olderSDL3.dllcan't pick the wrong profile.xbox. It might be worth having the HID path reportplaystationtoo.Imported from Marvisak/VIctory. Originally posted by Kabosune on 2026-11-24T16:35:33Z.
Correction on my first point: SDL3's
SDL_GamepadTypeonly grows at the end and the 3.x ABI is stable, so the literals can't map to the wrong type, and checking the version wouldn't help. Named constants would just be a readability nicety, so feel free to ignore it. The HID point is really a note for #150, not this PR.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:18:04Z.
Automated triage for the maintainers.
This pull request conflicts with
main(conflicting files:crates/victory-hle/src/modules/gameinput.rs). It will be reviewed once it is rebased ontomain.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by Razdva122 on 2026-11-28T06:37:32Z.
@Marvisak, could you re-review the controller diagram change at
8a485eeand removetriage: needs rebase? GitHub reports a clean merge withmainat63bcca4. The latest commit keeps a relative glyph directory pointing to the configured pack when the guest changes its working directory. All three diagram tests and all 17 DirectStorage tests passed in the Windows diagnostics build. The PR remains a draft pending #312 and an in-game controller-switch check. Diagnostics tests · Workspace CIView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.