Page 1 of 1

Using Joystick for interaction

Posted: Sun Apr 13, 2025 11:45 pm
by adreeezy
Hi! Working on a project using the dialogue system and we're trying to use a joystick controller as our way to interact with the system along with the keyboard. The keyboard works and interacts, but even with the input device manager and proximity selector set to joystick, it doesn't work, and we can't interact with the dialogue system. We are using the new Unity input system, and have the input actions for the joystick/gamepad set for interaction.
Is there a way to assign multiple 'use keys' for the proximity selector? Or is there a way to use custom player input actions instead of a single key bind?

Re: Using Joystick for interaction

Posted: Mon Apr 14, 2025 5:33 am
by allen
This is happening also to us. Does not matter which button I choose from the dropdown selector in the inspector, the controller just does not work

Re: Using Joystick for interaction

Posted: Mon Apr 14, 2025 5:40 am
by allen
The devs answered me in a separate post, maybe you can find this useful: https://www.pixelcrushers.com/phpbb/vie ... 066#p49066

Re: Using Joystick for interaction

Posted: Mon Apr 14, 2025 8:59 am
by Tony Li
To address your related questions:

> Working on a project using the dialogue system and we're trying to use a joystick controller as our way to interact with the system along with the keyboard. The keyboard works and interacts, but even with the input device manager and proximity selector set to joystick, it doesn't work, and we can't interact with the dialogue system. We are using the new Unity input system, and have the input actions for the joystick/gamepad set for interaction.

Try ticking the Dialogue Manager's Input Device Manager component > Always Auto Focus checkbox. Also make sure your EventSystem GameObject's InputSystemUIInputModule component is set up to work with joystick -- in other words, that regular Unity UI navigation works with joystick, independent of the Dialogue System.

> Is there a way to assign multiple 'use keys' for the proximity selector? Or is there a way to use custom player input actions instead of a single key bind?

Yes to both. Define your input action to read from multiple sources. This is an Input System thing, not specifically a Dialogue System thing.