Prompts: VICTORY_PROMPTS=dualsense draws the DualSense's buttons #2873

Open
github-bot wants to merge 2 commits from github-bot/gh-2873 into main AGit
Owner

@⁠Kam471 on GitHub · 2026-11-29 18:25 UTC · original
Kam471:prompts-dualsense → main · +635 −57 · 5 files · 2 commits · open

What this changes

A third prompt style: --set VICTORY_PROMPTS=dualsense (playstation, ps)
redraws the title's icon movie with the button a DualSense has at each control's
place, instead of the keyboard's key cap.

Why

The icon movie has one picture per control, and the prompts layer redrew it
with keys only. A player on a DualSense gets Xbox letters in key caps. The pad's
own symbols are there to draw: A the cross, B the circle, X the square, Y the
triangle, LB/RB L1/R1, LT/RT L2/R2, View the touchpad, Menu Options,
and a stick's click L3/R3.

How

  • prompts::Style (Keys, PlayStation) replaces the key-caps-only path.
    Style::asked maps keys to the key caps, dualsense/playstation/ps to
    the DualSense, and leaves the title's own pictures for gamepad and for a
    name this build does not know.
  • The symbols are drawn as contours in the key cap's 1280-twip cell: a
    twelve-point cross, a circle of eight quadratics with its hole reversed,
    square and triangle rings, and a wide rounded touchpad. The words (L1,
    L2, Options, R3) stay on the same white cap the keys use.
  • The direction pad's arrows and the sticks' directions are drawn the same way
    on both pads, so those icons keep the title's own pictures.
  • hook::install takes the style, and every kept movie is drawn with it: the
    style is chosen once, before the title runs, as the switch's other values
    already are.
  • View is the touchpad, not Create. Create is the console's capture button;
    the title opens the map from View ("Press [View] to open the map"), and a
    word does not fit the cell.

What does not change

VICTORY_PROMPTS unset still means key caps, gamepad still leaves the movie
alone, and nothing is read after the hook is placed.

Why this is the small version

#937 tried this first and was closed without merging: it added png/zopfli,
a binary controller picture and patches to the title's files, and the close
asked for "a smaller pull request against the current main without new
dependencies". This adds no dependency and no asset, and patches nothing the
title ships from disk: the symbols are contours drawn into the icon movie the
title already loads, next to the key caps the layer already draws.

Tests

  • cargo test -p victory-game prompts:: — the switch's names, the DualSense
    labels the title has only Xbox names for, each face symbol closed inside the
    label box, the redraw keeping the movie's sprites, classes and timeline, the
    direction pad and stick directions left to the title, and a cap whose word
    has no glyph keeping its picture.
  • cargo test -p victory compiles the run-side selection.

Refs #2126 (the switch this follows), #937 (the shape of this change). #2545
and #2630 change the same VICTORY_PROMPTS decision in run.rs; this is
additive to both — it only adds a value and a style, and leaves which style a
run asks for to that decision.

**@⁠Kam471** on GitHub · 2026-11-29 18:25 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2873) `Kam471:prompts-dualsense` → `main` · +635 −57 · 5 files · 2 commits · open ## What this changes A third prompt style: `--set VICTORY_PROMPTS=dualsense` (`playstation`, `ps`) redraws the title's icon movie with the button a DualSense has at each control's place, instead of the keyboard's key cap. ## Why The icon movie has one picture per control, and the prompts layer redrew it with keys only. A player on a DualSense gets Xbox letters in key caps. The pad's own symbols are there to draw: A the cross, B the circle, X the square, Y the triangle, LB/RB `L1`/`R1`, LT/RT `L2`/`R2`, View the touchpad, Menu `Options`, and a stick's click `L3`/`R3`. ## How - `prompts::Style` (`Keys`, `PlayStation`) replaces the key-caps-only path. `Style::asked` maps `keys` to the key caps, `dualsense`/`playstation`/`ps` to the DualSense, and leaves the title's own pictures for `gamepad` and for a name this build does not know. - The symbols are drawn as contours in the key cap's 1280-twip cell: a twelve-point cross, a circle of eight quadratics with its hole reversed, square and triangle rings, and a wide rounded touchpad. The words (`L1`, `L2`, `Options`, `R3`) stay on the same white cap the keys use. - The direction pad's arrows and the sticks' directions are drawn the same way on both pads, so those icons keep the title's own pictures. - `hook::install` takes the style, and every kept movie is drawn with it: the style is chosen once, before the title runs, as the switch's other values already are. - View is the touchpad, not `Create`. `Create` is the console's capture button; the title opens the map from View ("Press [View] to open the map"), and a word does not fit the cell. ## What does not change `VICTORY_PROMPTS` unset still means key caps, `gamepad` still leaves the movie alone, and nothing is read after the hook is placed. ## Why this is the small version #937 tried this first and was closed without merging: it added `png`/`zopfli`, a binary controller picture and patches to the title's files, and the close asked for "a smaller pull request against the current main without new dependencies". This adds no dependency and no asset, and patches nothing the title ships from disk: the symbols are contours drawn into the icon movie the title already loads, next to the key caps the layer already draws. ## Tests - `cargo test -p victory-game prompts::` — the switch's names, the DualSense labels the title has only Xbox names for, each face symbol closed inside the label box, the redraw keeping the movie's sprites, classes and timeline, the direction pad and stick directions left to the title, and a cap whose word has no glyph keeping its picture. - `cargo test -p victory` compiles the run-side selection. Refs #2126 (the switch this follows), #937 (the shape of this change). #2545 and #2630 change the same `VICTORY_PROMPTS` decision in `run.rs`; this is additive to both — it only adds a value and a style, and leaves which style a run asks for to that decision.
The icon movie has one picture per control, and the layer redrew it with
the keyboard's keys only. A third style redraws the same icons with the
button a DualSense has at each control's own place: A the cross, B the
circle, X the square, Y the triangle, LB/RB L1/R1, LT/RT L2/R2, View
Create, Menu Options, and a stick's click L3/R3. The symbols are drawn
as contours in the key cap's 1280-twip cell (a twelve-point cross, a
circle of eight quadratics with its hole reversed, square and triangle
rings), and the words on the same white cap the keys use. The direction
pad's arrows and the sticks' directions are drawn the same way on both
pads, so those icons keep the title's own pictures.

VICTORY_PROMPTS takes dualsense, playstation or ps for it; unset and keys
keep the key caps, and gamepad (or a name this build does not know) still
leaves the movie alone. The style is chosen once, when the hook is placed.

Co-Authored-By: DeepSeek V4.1 Flash <[email protected]>
Create is the console's capture button; the title opens the map from View.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 18:28:55 +00:00
This pull request has changes conflicting with the target branch.
  • README.md
  • apps/victory/src/run.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 origin '+refs/pull/2873/head:github-bot/gh-2873'
git switch 'github-bot/gh-2873'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2873'
git switch 'github-bot/gh-2873'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2873'
git switch 'github-bot/gh-2873'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2873'
git switch 'main'
git merge --squash 'github-bot/gh-2873'
git switch 'main'
git merge --ff-only 'github-bot/gh-2873'
git switch 'main'
git merge 'github-bot/gh-2873'
git push origin 'main'
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/trustno1-coder--VIctory-NVIDIA!2873
No description provided.