Input: choose the loose controls diagram by active gamepad (stacked on #312) #1179
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1179
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@Razdva122 on GitHub · 2026-11-24 16:21 UTC · original
Razdva122:input/controller-prompts→main· +771 −69 · 7 files · 4 commits · draftDraft 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 two commits 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. 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.
Windows CI passed both workspace Clippy configurations, the full workspace suite and the diagnostics-mode DirectStorage tests at
ccd207f. Windows job@Kabosune on GitHub · 2026-11-24 16:29 UTC · original
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.@Kabosune on GitHub · 2026-11-24 16:35 UTC · original
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.@Marvisak on GitHub · 2026-11-25 01:18 UTC · original · edited 2026-11-26 00:15 UTC
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
351a9fd739toccd207f7d1View 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.