Response button ignores space bar, only reacts to Enter key

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Vielfalt
Posts: 8
Joined: Tue Dec 10, 2024 6:07 am
Location: Austria
Contact:

Response button ignores space bar, only reacts to Enter key

Post by Vielfalt »

Hi,
I created a bubble dialogue response panel which works great using the mouse, or arrow keys and the return key. However, the space bar is ignored. I tried adding it in various places (Input Actions Editor, Input Device Manager / Key Codes to Check) to no avail.
Attached are screenshots from the Input Actions Editor, DialogueSystemController and my response panel and button. Is there anything I'm missing?
Attachments
Response Panel.png
Response Panel.png (268.69 KiB) Viewed 1412 times
Response Button.png
Response Button.png (130.96 KiB) Viewed 1412 times
PlayerInput UI.png
PlayerInput UI.png (161.09 KiB) Viewed 1412 times
PlayerInput Player.png
PlayerInput Player.png (182.88 KiB) Viewed 1412 times
DialogueSystemController.png
DialogueSystemController.png (351.43 KiB) Viewed 1412 times
User avatar
Tony Li
Posts: 22871
Joined: Thu Jul 18, 2013 1:27 pm

Re: Response button ignores space bar, only reacts to Enter key

Post by Tony Li »

Hi,

The response menu and continue button rely on the Unity UI EventSystem. Make sure the input action assigned to your EventSystem's InputSystemUIInputModule listens for the space bar.
User avatar
Vielfalt
Posts: 8
Joined: Tue Dec 10, 2024 6:07 am
Location: Austria
Contact:

Re: Response button ignores space bar, only reacts to Enter key

Post by Vielfalt »

This was the one place I didn't look, thank you!
The InputSystemUIInputModule's "Actions Asset" was set to default instead of my custom one.
Here's another screenshot for future reference:
Attachments
InputSystemUIInputModule.png
InputSystemUIInputModule.png (143.8 KiB) Viewed 1373 times
User avatar
Tony Li
Posts: 22871
Joined: Thu Jul 18, 2013 1:27 pm

Re: Response button ignores space bar, only reacts to Enter key

Post by Tony Li »

Glad to help!
Post Reply