Input: VICTORY_PAD presses buttons of a connected pad (diagnostics) #42

Closed
EricPlayZ wants to merge 1 commit from upstream-pr/42 into main
EricPlayZ commented 2026-11-23 23:40:45 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by EricPlayZ on 2026-11-23T23:40:45Z.


VICTORY_KEYS drives the keyboard's stand-in pad, which goes away while a controller is connected, so a scripted run with a pad plugged in presses nothing. This adds VICTORY_PAD=<seconds>:<button>,... (diagnostics builds): it holds buttons of the host pad in slot 0 for 0.2 s at those times, on top of what the pad reports. Buttons: A B X Y Menu View Up Down Left Right LB RB.

  • pad_script parses the list (unknown buttons and bad times are left out); pad_scripts_parse_buttons_at_times tests it.
  • README's debugging table lists the switch.

Tested: cargo test -p victory-hle --lib gameinput (8 passed), a diagnostics build of victory-hle, cargo xtask policy (ok), and rustfmt with the repo config reports nothing new in the changed file. Not yet run live with a controller connected (Windows 11, RTX 2070 SUPER); I'll add the result here once I have.

AI-assisted (Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:issue:6571165886 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/42). Originally posted by [EricPlayZ](https://github.com/EricPlayZ) on 2026-11-23T23:40:45Z. --- `VICTORY_KEYS` drives the keyboard's stand-in pad, which goes away while a controller is connected, so a scripted run with a pad plugged in presses nothing. This adds `VICTORY_PAD=<seconds>:<button>,...` (diagnostics builds): it holds buttons of the host pad in slot 0 for 0.2 s at those times, on top of what the pad reports. Buttons: A B X Y Menu View Up Down Left Right LB RB. - `pad_script` parses the list (unknown buttons and bad times are left out); `pad_scripts_parse_buttons_at_times` tests it. - README's debugging table lists the switch. Tested: `cargo test -p victory-hle --lib gameinput` (8 passed), a diagnostics build of `victory-hle`, `cargo xtask policy` (ok), and rustfmt with the repo config reports nothing new in the changed file. Not yet run live with a controller connected (Windows 11, RTX 2070 SUPER); I'll add the result here once I have. AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
upstream-sync closed this pull request 2026-11-24 06:51:03 +00:00
EricPlayZ commented 2026-11-24 06:54:32 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by EricPlayZ on 2026-11-23T23:45:04Z.


Closing: this is a test-run convenience rather than something that helps the game run, and I'd rather not add review load for it. Sorry for the noise.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7117322701 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/42#issuecomment-7117322701). Originally posted by [EricPlayZ](https://github.com/EricPlayZ) on 2026-11-23T23:45:04Z. --- Closing: this is a test-run convenience rather than something that helps the game run, and I'd rather not add review load for it. Sorry for the noise.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
Marvisak/VIctory!42
No description provided.