Wrong button prompts #3065

Open
leonida/mandy
opened 2026-12-02 07:50:43 +00:00 by sYnapZiX · 3 comments
sYnapZiX commented 2026-12-02 07:50:43 +00:00

The game always shows the wrong button prompts, it always shows me PS buttons even though i don't even possess a PS controller. I only have XBox controllers and the keyboard.

The game always shows the wrong button prompts, it always shows me PS buttons even though i don't even possess a PS controller. I only have XBox controllers and the keyboard.
fiestorra commented 2026-12-02 14:59:10 +00:00

The layer decides the prompt family itself, and a remapper in the middle is the usual reason it decides PlayStation while you hold an Xbox pad. It is in the code, and it is deliberate:

d3d12/crates/leonida-hle/src/modules/gameinput.rs:1692-1694:

// A Sony pad mirrored through a remapper (e.g. DS4Windows, Steam Input)
// is still PlayStation while XInput is connected and the mirror is active.
let sony_pad = self.view.present || (xinput && self.mirror.active(now));

The title is told every pad is an Xbox pad (it cannot see the difference), so the layer picks the family and tells it: PlayStation if it can see a Sony pad, Xbox otherwise, keyboard and mouse with no pad at all (family.rs:112-122).

So, in order:

  1. Steam Input. If Steam is running with Xbox configuration support on, it presents your pad to games as a DualSense - and that is exactly what the layer sees. Turn Steam Input off for this title (Steam → the game → Controller → "Disable Steam Input") and start again.
  2. DS4Windows or any other remapper doing the same: close it.
  3. Force the family (documented in switches.md): LEONIDA_PROMPTS=xbox - and it follows the switch during play with LEONIDA_PROMPTS_LIVE=1, which is useful to watch it change.
  4. In the game, F1 opens the settings panel and one of the switches is the prompt family; that one survives into leonida-settings.txt.

What tells which one it is: with -Log, the line that records the first answer says why:

prompt family ... "a Sony pad is connected"     <- the layer sees one
prompt family ... "a pad is connected, no input yet"   <- it sees an Xbox pad
prompt family ... "no pad is connected"

If it says "a Sony pad is connected" and you own none, the log plus what controllers are plugged in (and whether Steam or DS4Windows runs) is the whole report: that is the remapper path above, or a device that identifies itself as Sony.

AI-assisted: yes - DeepSeek v4.1 (flash).

Written with an AI assistant.

**The layer decides the prompt family itself, and a remapper in the middle is the usual reason it decides PlayStation while you hold an Xbox pad.** It is in the code, and it is deliberate: `d3d12/crates/leonida-hle/src/modules/gameinput.rs:1692-1694`: ```rust // A Sony pad mirrored through a remapper (e.g. DS4Windows, Steam Input) // is still PlayStation while XInput is connected and the mirror is active. let sony_pad = self.view.present || (xinput && self.mirror.active(now)); ``` **The title is told every pad is an Xbox pad** (it cannot see the difference), so the layer picks the family and tells it: PlayStation if it can see a Sony pad, Xbox otherwise, keyboard and mouse with no pad at all (`family.rs:112-122`). **So, in order:** 1. **Steam Input.** If Steam is running with *Xbox configuration support* on, it presents your pad to games as a DualSense - **and that is exactly what the layer sees**. **Turn Steam Input off for this title** (Steam → the game → Controller → "Disable Steam Input") and start again. 2. **DS4Windows or any other remapper** doing the same: close it. 3. **Force the family** (documented in `switches.md`): **`LEONIDA_PROMPTS=xbox`** - and it follows the switch during play with `LEONIDA_PROMPTS_LIVE=1`, which is useful to watch it change. 4. **In the game**, **F1** opens the settings panel and one of the switches is the prompt family; that one survives into `leonida-settings.txt`. **What tells which one it is**: with `-Log`, the line that records the first answer says *why*: ``` prompt family ... "a Sony pad is connected" <- the layer sees one prompt family ... "a pad is connected, no input yet" <- it sees an Xbox pad prompt family ... "no pad is connected" ``` **If it says "a Sony pad is connected" and you own none**, the log plus **what controllers are plugged in** (and whether Steam or DS4Windows runs) is the whole report: that is the remapper path above, or a device that identifies itself as Sony. **AI-assisted:** yes - DeepSeek v4.1 (flash). Written with an AI assistant.
sYnapZiX commented 2026-12-02 15:06:32 +00:00

Everything that has todo with the F1 menu isn't working for me. It simply does not save anything. I already opened another issue because i'm unable to use DLSS. No matter which setting i set in the F1 menu, after pressing any of the two save settings, the next launch starts with defaults again.

The only two lines that are 'prompt' related are these ones:

2026-12-02T15:01:53.783899Z  INFO leonida_hle::modules::glyphs: prompt glyphs: PlayStation and keyboard (live) movie loaded path=D:\EarlyXmas\leonida\launcher\d3d12\target\ps_live_prompt_glyphs.gfx
2026-12-02T15:01:53.784128Z  INFO leonida_hle::modules::glyphs: prompt glyphs: the title reads its glyph movie family="keyboard and mouse" glyphs="PlayStation and keyboard (live)"

Now i didn't use a controller at all (kb and mouse only) and it still showed the PS buttons.

Everything that has todo with the F1 menu isn't working for me. It simply does not save anything. I already opened another issue because i'm unable to use DLSS. No matter which setting i set in the F1 menu, after pressing any of the two save settings, the next launch starts with defaults again. The only two lines that are 'prompt' related are these ones: 2026-12-02T15:01:53.783899Z  INFO leonida_hle::modules::glyphs: prompt glyphs: PlayStation and keyboard (live) movie loaded path=D:\EarlyXmas\leonida\launcher\d3d12\target\ps_live_prompt_glyphs.gfx 2026-12-02T15:01:53.784128Z  INFO leonida_hle::modules::glyphs: prompt glyphs: the title reads its glyph movie family="keyboard and mouse" glyphs="PlayStation and keyboard (live)" Now i didn't use a controller at all (kb and mouse only) and it still showed the PS buttons.
MoonEyes commented 2026-12-03 16:12:16 +00:00

This was generated by AI during triage.

Triage Notes

What we've established so far:

  • The reporter confirms using keyboard and mouse only; the log nevertheless shows a PlayStation prompt movie being loaded.
  • An earlier suggestion attributed PlayStation prompts to a remapped Sony controller, but the reporter says no controller was used, so that explanation is not established.

What we still need from you (@sYnapZiX):

  • On current main, please confirm whether Windows lists any virtual controller in joy.cpl while the game is stopped, and whether Steam Input/DS4Windows or another remapper is running. Then start the game with no controller connected and report the commit plus the prompt glyphs log lines. Do not include private paths.
> *This was generated by AI during triage.* ## Triage Notes **What we've established so far:** - The reporter confirms using keyboard and mouse only; the log nevertheless shows a PlayStation prompt movie being loaded. - An earlier suggestion attributed PlayStation prompts to a remapped Sony controller, but the reporter says no controller was used, so that explanation is not established. **What we still need from you (@sYnapZiX):** - On current `main`, please confirm whether Windows lists any virtual controller in `joy.cpl` while the game is stopped, and whether Steam Input/DS4Windows or another remapper is running. Then start the game with no controller connected and report the commit plus the `prompt glyphs` log lines. Do not include private paths.
Sign in to join this conversation.
No assignees
No project
No milestone
Dependencies

No dependencies set

Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
leonida/mandy#3065
No description provided.