Prompts: VICTORY_PROMPTS=dualsense draws the DualSense's buttons #2873
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2873
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2873"
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?
@Kam471 on GitHub · 2026-11-29 18:25 UTC · original
Kam471:prompts-dualsense→main· +635 −57 · 5 files · 2 commits · openWhat 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/RTL2/R2, View the touchpad, MenuOptions,and a stick's click
L3/R3.How
prompts::Style(Keys,PlayStation) replaces the key-caps-only path.Style::askedmapskeysto the key caps,dualsense/playstation/pstothe DualSense, and leaves the title's own pictures for
gamepadand for aname this build does not know.
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.on both pads, so those icons keep the title's own pictures.
hook::installtakes the style, and every kept movie is drawn with it: thestyle is chosen once, before the title runs, as the switch's other values
already are.
Create.Createis 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_PROMPTSunset still means key caps,gamepadstill leaves the moviealone, 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 DualSenselabels 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 victorycompiles the run-side selection.Refs #2126 (the switch this follows), #937 (the shape of this change). #2545
and #2630 change the same
VICTORY_PROMPTSdecision inrun.rs; this isadditive to both — it only adds a value and a style, and leaves which style a
run asks for to that decision.
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.Merge
Merge the changes and update on Forgejo.