Input: a key tapped between two asks is still seen at a frame a second; the scripted keys' hold can be set #1101
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1104"
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 fxceless/victory-fork. Originally posted by Dathinel on 2026-11-25T19:31:43Z.
What
Two small changes in
crates/victory-hle/src/modules/gameinput.rs(+13 −3) for runs at about a frame a second, which is where a 4 GB card is in the world today.Host::keysreported only keys that were down at that instant (GetAsyncKeyState(vk) < 0), so at 1 fps a normal tap, down and up inside the second between two asks, never reached the title: menus and prompts needed the key held for over a second. It now also takes the low bit ofGetAsyncKeyState(pressed since the last query), so such a tap shows as down for one ask. Still only while the title's window has focus.VICTORY_KEYS_HOLD_MS(diagnostics builds): the scripted keys ofVICTORY_KEYSare held 0.2 s; at 1 fps that falls between two asks the same way. The variable sets the hold; unset, it stays 0.2 s.Measured
RTX 3050 Laptop 4 GB, Ryzen 7 7435HS, Windows 11 26200,
--console series-s, ond510ee4with #1081 and #798 merged.cargo test --locked -p victory-hle --lib gameinput, with and without--features diagnostics: 7 passed, on this branch (dd3a14b+ this commit).VICTORY_KEYSwith Enter every 8 to 15 s, 0.2 s holds): the person at the machine had to press Enter by hand to get through the screens once the frame rate dropped.VICTORY_KEYS_HOLD_MS=1500: the run went from boot into the opening (330 s) with the same key list.Not tested
GetAsyncKeyStatecan also carry a press made just before the window took focus; I did not look for a case where that matters.AI-assisted (Claude Code). No game data attached.
Update, 28 November. Merged current
maininto the branch (it conflicted after the rebase of this fork).main's scripted keys now carry their own from-to ranges and a keys file, so theVICTORY_KEYS_HOLD_MSpart is dropped: what remains is 15 lines, the tap itself and the focus guard from the review.cargo check -p victory-hlepasses; not run in the game on this base.Where this came from and what it was measured on (RTX 3050 Laptop 4 GB, Series S, runs at 1 to 7 fps where a tap between two asks was lost): https://github.com/Dathinel/victory-4gb
Imported from fxceless/victory-fork. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T19:31:53Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
7651d4fℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
Imported from fxceless/victory-fork. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T19:35:22Z.
Review: COMMENTED
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
25c50f18f7ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Imported from fxceless/victory-fork. Originally posted by Dathinel on 2026-11-25T20:02:22Z.
The review's point holds: with focus away,
keys()does not query the keys, so the low bit could carry a press made in another window into the first look after focus returns. Fixed in5ea4ed5:Hostremembers whether the last look had focus, and the first look after it comes back takes only keys that are down at that instant (it still queries, which clears the stale bits). The first look of a run counts as such too.cargo test --locked -p victory-hle --lib gameinput, with and withoutdiagnostics: 7 passed; clippy onvictory-hleclean. Not tested by hand with a second window.Imported from fxceless/victory-fork. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T19:35:22Z.
Code review location:
crates/victory-hle/src/modules/gameinput.rs; line 1179On Windows, pressing and releasing Enter or Esc in another application can now generate input when returning to the title.
keys()skipsGetAsyncKeyStatewhilefocused()is false, so the low bit can retain a background press until the first focused poll. This condition then reports the already-released key as down; with no controller connected,fallback()also maps it to an A/Menu button press, potentially confirming a prompt or toggling pause merely by refocusing. Discard historical pressed bits on focus regain before accepting them as title input.Useful? React with 👍 / 👎.
Imported from fxceless/victory-fork. Originally posted by chatgpt-codex-connector[bot] on 2026-11-28T01:10:27Z.
Review: COMMENTED
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
7651d4fff4ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Imported from fxceless/victory-fork. Originally posted by chatgpt-codex-connector[bot] on 2026-11-28T01:10:28Z.
Code review location:
crates/victory-hle/src/modules/gameinput.rs; line 1318On Windows with the default one-pad mode, tapping and releasing Backspace while the F1 settings menu is open can generate a B press after the menu closes.
keys()returns before querying keys during menu capture, and the settings worker only queries F1/arrows/Enter/Esc (crates/victory-gpu/src/host/menu.rs:140), leaving Backspace's historical press bit uncleared. Closing the menu does not change process focus, sofreshis false and this condition publishes the released key to the keyboard andfallback()gamepad. This can cancel a title prompt despite the menu's keyboard suppression. Clear historical bits during capture or discard them on the first poll after capture ends.Useful? React with 👍 / 👎.
Imported from fxceless/victory-fork. Originally posted by Dathinel on 2026-11-28T01:11:51Z.
The red check is not from this change: Clippy stops at
crates/victory-formats/src/texture.rs:1346("operator precedence might not be obvious"), a file this PR does not touch, and the last two CI runs onmainitself fail too. The branch now merges cleanly. Written with AI assistance (Claude Code).Imported from fxceless/victory-fork. Originally posted by Dathinel on 2026-11-28T04:48:45Z.
The review's point holds (a key tapped while the F1 settings menu has the keyboard came out as a press once it closed, since closing the menu does not change focus). Fixed in the last commit: while the menu is open the look counts as focus away, so the first look after it closes only clears the low bits.
cargo check -p victory-hlepasses. Written with AI assistance (Claude Code).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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.