Selector does not react to "Use Key" when I select "Mouse 0"

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
gebirgsbaerbel
Posts: 1
Joined: Mon Mar 20, 2023 4:09 am

Selector does not react to "Use Key" when I select "Mouse 0"

Post by gebirgsbaerbel »

I am using the new input system. Everything works fine. I can hover over Usables and they are detected. I can start conversations with the Selector as long as I choose any key from the keyboard.

But if I select "Mouse 0" as the "Use Key" nothing happens. Am I missing something?
I have ticked "New Input System" in the Welcome dialogue and as I said, it seems to work for everything else.
User avatar
Tony Li
Posts: 22133
Joined: Thu Jul 18, 2013 1:27 pm

Re: Selector does not react to "Use Key" when I select "Mouse 0"

Post by Tony Li »

Hi,

Keycodes are generally only used for Unity's built-in input manager. The Dialogue System can handle keyboard keycodes with the Input System package but, since the Input System works differently with mice and joysticks, the Dialogue System can't translate mouse and joystick keycodes. Instead:

1. Dfine an action in your input actions asset.
2. Register the action with the Dialogue System's InputDeviceManager.
3. Specify the action in the Selector's Use Button field.

You can find more info in the Input_Device_Manager_Manual.pdf in Plugins/Pixel Crushers/Common/Documentation or the Input System Tutorial.
Post Reply