I’m using the Dialogue System for Unity and have set Space as the key to continue dialogue. However, the response menu also uses Space to select choices, which can cause players to accidentally skip or select options unintentionally.
What I Want:
Space → Only for continuing dialogue.
Enter (Return Key) → Only for selecting responses.
What I’ve Tried:
Checked Input Settings in DialogueManager but didn’t find a direct way to separate these inputs.
Looked at StandardUIResponseButton but unsure how to modify key detection.
Considered disabling Space in the response menu but don’t want to break the UI.
Dialogue UIs (continue buttons and response menus) use standard Unity UI interaction via Unity UI's EventSystem GameObject.
When a button is focused (selected), pressing the EventSystem's Submit input will click the button.
With Unity's built-in input manager, Submit is by default mapped to Space and Enter.
With the Input System package, Submit is by default mapped to only Enter.
If it's acceptable to use Enter for both (continue button and response button), you can make sure only Enter is mapped to Submit. Then, to allow the player to also press Space to click the continue button, add a UI Button Key Trigger component to the continue button and set the Key dropdown to Space.
If that's not acceptable, let me know and we can brainstorm other approaches.
You can also set the menu panel's StandardUIMenuPanel component Block Input Duration to something like 0.5 seconds so the player can't immediately click a response button right after a continue button.
one more thing, if i clicked the screen other then the button, the current focused button become unfocused, is there any way to make the focus button not effected by cursor click on screen?
The Dialogue System has a feature, though, to keep an appropriate UI button focused (selected). On the Dialogue Manager GameObject, tick the Input Device Manager component's Always Auto Focus. This will always keep a UI button focused when appropriate. Otherwise it will only keep a UI button focused when the Input Device Manager is in Joystick or Keyboard mode (not Mouse mode, which it switches to when you move or click the mouse).
about using always auto focus and changing input device, i have set the input device to be always keyboard(unchecking detect mouse control). checking the always auto focus still does not answer my problem. i use a and d key to hover choosing yes or no, so if both unfocused, i cant hover and use enter to choose, only can use mouse click
Attachments
Screenshot 2025-05-20 at 12.38.43.png (98.41 KiB) Viewed 2 times