WIP: Refresh visible key prompts on Windows layout changes #473

Draft
FORLE wants to merge 1 commit from FORLE/Darner:contrib/darner-keyboard-labels into Main
First-time contributor

Contributor role (optional)

  • Fluxer ID: not provided.

What it changes

  • On main, visible letter prompts keep their startup labels after switching the Windows keyboard layout, as read from the code.
  • Refresh supported prompts already on screen on WM_INPUTLANGCHANGE, using up to eight distinct label sets from layouts loaded at launch. This changes labels, not bindings.

How it was tested

  • Tested revision: 57c7f2a on d91d8e4.
  • Commands and results: 69 prompt tests, 19 GFX tests and 2 targeted HLE/lifecycle tests passed. Staged asset policy passed.
  • Changes a default: yes, display only for supported keyboard prompts on Windows. No performance claim.
  • Gates: both Clippy gates passed. The full workspace run failed on two GPU tests: the DXC test also fails on clean d91d8e4 (0x80004005), and the watch reservation test passed in isolation on this revision.
  • Gameplay: on an earlier base of this patch, the open pause menu updated R → К → R without reopening. This exact revision has not been checked in game.
  • Shader wave sizes: not applicable. Hardware dependence: not tested across setups.
  • Coverage gaps: Alt+Tab and in-game rebinding were not tested. Bindings are read at startup.

Checklist

  • I ran this change in the game, or say below why it can't be (docs, tests only).
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: #353 (font fallback), #364 (binding semantics and printed letters), #429 (hold bindings), and #472 (mouse prompt icons).
  • Replaces or overlaps: #364 changes how bindings and labels are interpreted but does not refresh an already open prompt after a layout switch. #429 and #472 also touch prompt rendering; this branch does not depend on them.
## Contributor role (optional) - Fluxer ID: not provided. ## What it changes - On main, visible letter prompts keep their startup labels after switching the Windows keyboard layout, as read from the code. - Refresh supported prompts already on screen on WM_INPUTLANGCHANGE, using up to eight distinct label sets from layouts loaded at launch. This changes labels, not bindings. ## How it was tested - Tested revision: `57c7f2a` on `d91d8e4`. - Commands and results: 69 prompt tests, 19 GFX tests and 2 targeted HLE/lifecycle tests passed. Staged asset policy passed. - Changes a default: yes, display only for supported keyboard prompts on Windows. No performance claim. - Gates: both Clippy gates passed. The full workspace run failed on two GPU tests: the DXC test also fails on clean `d91d8e4` (`0x80004005`), and the watch reservation test passed in isolation on this revision. - Gameplay: on an earlier base of this patch, the open pause menu updated `R → К → R` without reopening. This exact revision has not been checked in game. - Shader wave sizes: not applicable. Hardware dependence: not tested across setups. - Coverage gaps: Alt+Tab and in-game rebinding were not tested. Bindings are read at startup. ## Checklist - [ ] I ran this change in the game, or say below why it can't be (docs, tests only). - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: #353 (font fallback), #364 (binding semantics and printed letters), #429 (hold bindings), and #472 (mouse prompt icons). - Replaces or overlaps: #364 changes how bindings and labels are interpreted but does not refresh an already open prompt after a layout switch. #429 and #472 also touch prompt rendering; this branch does not depend on them.
TrustNo1 changed title from WIP: [pr-fix][input] Refresh visible key prompts on Windows layout changes to WIP: Refresh visible key prompts on Windows layout changes 2026-12-06 03:28:20 +00:00
This pull request has changes conflicting with the target branch.
  • crates/darner-hle/src/modules/lifecycle.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'contrib/darner-keyboard-labels:FORLE-contrib/darner-keyboard-labels'
git switch 'FORLE-contrib/darner-keyboard-labels'

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.

git switch 'Main'
git merge --no-ff 'FORLE-contrib/darner-keyboard-labels'
git switch 'FORLE-contrib/darner-keyboard-labels'
git rebase 'Main'
git switch 'Main'
git merge --ff-only 'FORLE-contrib/darner-keyboard-labels'
git switch 'FORLE-contrib/darner-keyboard-labels'
git rebase 'Main'
git switch 'Main'
git merge --no-ff 'FORLE-contrib/darner-keyboard-labels'
git switch 'Main'
git merge --squash 'FORLE-contrib/darner-keyboard-labels'
git switch 'Main'
git merge --ff-only 'FORLE-contrib/darner-keyboard-labels'
git switch 'Main'
git merge 'FORLE-contrib/darner-keyboard-labels'
git push origin 'Main'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!473
No description provided.