Page 1 of 1

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

Posted: Mon Mar 20, 2023 4:12 am
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.

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

Posted: Mon Mar 20, 2023 8:59 am
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.