Page 1 of 1

Joypad cross input

Posted: Thu Apr 13, 2023 1:28 pm
by forrestuv
Hi,
is there a way to use also the Joypad cross input during the response dialogue to chose the answer?

Re: Joypad cross input

Posted: Thu Apr 13, 2023 2:48 pm
by Tony Li
Yes. It's not specific to the Dialogue System. Set up the Unity UI EventSystem to use the cross input for the Vertical and Horizontal Axis inputs. For example, if you're using Unity's built-in input manager, add additional entries for the "Horizontal" and "Vertical" inputs, and configure them to use joystick axes 6 and 7. This will allow you to use the d-pad to navigate UIs, including Dialogue System UIs.

Re: Joypad cross input

Posted: Sat Apr 15, 2023 4:11 am
by forrestuv
And what should I do if I'm using rewired?

Re: Joypad cross input

Posted: Sat Apr 15, 2023 7:44 am
by Tony Li
Set it up like this: Rewired Standalone Input Module

Re: Joypad cross input

Posted: Mon Apr 17, 2023 11:04 am
by forrestuv
Probably I'm missing something.
U can see my setup in the screenshots

Re: Joypad cross input

Posted: Mon Apr 17, 2023 11:08 am
by Tony Li
Hi,

Did you add actions "UIHorizontal" and "UIVertical" to your Rewired actions, and map them to the left stick and d-pad?

Does your scene's EventSystem have a Rewired Standalone Input Module?

Are those actions ("UIHorizontal" and "UIVertical") assigned to the Rewired Standalone Input Module's Horizontal Axis and Vertical Axis?

(See the Rewired Standalone Input Module docs for step-by-step setup.)

Re: Joypad cross input

Posted: Mon Apr 17, 2023 11:18 am
by forrestuv
UIHorizontal is set to LeftStick, am I able to assign to CrossAxis too?I cannot have actions with the same name in rewired

Re: Joypad cross input

Posted: Mon Apr 17, 2023 11:28 am
by Tony Li
In your Joystick Maps, you can assign multiple inputs to UIHorizontal and UIVertical (e.g., left stick and d-pad).