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

Closed
github-bot wants to merge 1 commit from gh-pr/42/head into gh-pr/42/base
Owner

@⁠EricPlayZ on GitHub · 2026-11-23 23:40 UTC · original
EricPlayZ:pr-scripted-pad → main · +75 −1 · 2 files · 1 commits · closed without merging

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

**@⁠EricPlayZ** on GitHub · 2026-11-23 23:40 UTC · [original](https://github.com/Marvisak/VIctory/pull/42) `EricPlayZ:pr-scripted-pad` → `main` · +75 −1 · 2 files · 1 commits · closed without merging `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)
VICTORY_KEYS drives the keyboard's stand-in pad, which is gone while a
controller is connected, so a scripted run with a pad plugged in pressed
nothing. VICTORY_PAD=<seconds>:<button>,... holds buttons of the host pad
in slot 0 for 0.2 s at those times (A B X Y Menu View Up Down Left Right
LB RB), on top of what the pad itself reports. The list is parsed by
pad_script, which a unit test covers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:47:47 +00:00
github-bot closed this pull request 2026-11-26 03:47:48 +00:00
Author
Owner

@⁠EricPlayZ on GitHub · 2026-11-23 23:45 UTC · original

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.

**@⁠EricPlayZ** on GitHub · 2026-11-23 23:45 UTC · [original](https://github.com/Marvisak/VIctory/pull/42#issuecomment-7117322701) 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

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!42
No description provided.