tools: keymap overlay for remapped bindings #3664
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3664
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3664"
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?
@ReSerendipity on GitHub · 2026-11-30 03:21 UTC · original
ReSerendipity:tools/keymap-overlay→main· +578 −0 · 4 files · 2 commits · openFixes: nothing. This adds a tool; it does not fix a defect.
What it changes
bindings.inidecides which key presses the pad, but the glyphs the title draws keep namingthe Xbox button. Move
XoffSpaceandLBoffTabto an ordinary GTA V-shaped layoutand every prompt on screen is wrong; the only reminder left is the ini on a second monitor.
This adds
tools/keymap-overlay/: one C# WinForms form compiled by the .NET Frameworkcsc.exethat already ships with Windows, a two-line build script, the DPI manifest, and aREADME.
On screen it is a small always-on-top card with two columns, the key you press and the action
it stands for:
TextRenderer.MeasureText;WS_EX_TOOLWINDOW | WS_EX_NOACTIVATEandShowWithoutActivation, so it never takes focusfrom the game and never appears in Alt-Tab (it is not click-through; park it off the aim);
x,yandopacitypersist tokeymap-overlay.inibeside the exe, and an off-screenposition is clamped back on load;
--watch=<process>polls every 2 s and closes itself after two consecutive misses, so alauncher can start it unconditionally before
victory play.The table is data, not source: the built-in default is English, and an optional
keymap-overlay.labels.txtbeside the exe (read as UTF-8,<key> | <action>per line, plusnote/title/footer/menu-opacity/menu-close) replaces it with no rebuild.footertakes{0}for the opacity percentage. So a mapping for another layout, or atranslation of the action column, is a text file next to the exe rather than a fork of the
source.
No binaries are committed: source, manifest, build script and README only.
How it was tested
GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing):
RTX 5070 Ti Laptop 12 GB, Windows 11 26100, 2560x1600 at 150% scaling, Series X profile,
1440p,
--dlss quality,--fg-type dlss --framegen 4, ray tracing off.Before: mapped keys existed only in
bindings.ini; every in-game prompt named a pad buttonthat no longer does anything.
After:
build.cmdproduceskeymap-overlay.exe(15,872 B). The card is sized from theloaded table, measured from
GetWindowRecton each build:i.e. the row count and the label text both come from the file, and the Chinese column is
narrower than the English one as expected.
/codepage:65001keeps the source readable; thelabels file itself is UTF-8 and is not affected by that switch. Drag position and opacity
come back from the ini after a restart.
For shader changes, the wave sizes tested (32 and/or 64 lanes): not applicable, no shader code.
cargo testpassed for the crates it touches: no Rust crates are touched, and no.rsfilechanges, so the three CI gates are unaffected.
Checked for overlap
Related: #1739 (F5 map editor), #482 (F2 remapping page), #982 (
VICTORY_KEYMAP).Those add editors inside the title's own menu stack; this is a separate always-on-top card
that needs no game-side change, no rebuild, and works while the game is drawing its own
wrong prompts. It reads
bindings.inisemantics but never touches the file.View 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.