Joypad cross input

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
forrestuv
Posts: 64
Joined: Tue Nov 06, 2018 11:28 am

Joypad cross input

Post by forrestuv »

Hi,
is there a way to use also the Joypad cross input during the response dialogue to chose the answer?
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Joypad cross input

Post 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.
forrestuv
Posts: 64
Joined: Tue Nov 06, 2018 11:28 am

Re: Joypad cross input

Post by forrestuv »

And what should I do if I'm using rewired?
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Joypad cross input

Post by Tony Li »

Set it up like this: Rewired Standalone Input Module
forrestuv
Posts: 64
Joined: Tue Nov 06, 2018 11:28 am

Re: Joypad cross input

Post by forrestuv »

Probably I'm missing something.
U can see my setup in the screenshots
Attachments
dm.jpg
dm.jpg (51.35 KiB) Viewed 765 times
rw.jpg
rw.jpg (107.38 KiB) Viewed 765 times
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Joypad cross input

Post 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.)
forrestuv
Posts: 64
Joined: Tue Nov 06, 2018 11:28 am

Re: Joypad cross input

Post 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
Attachments
rw.png
rw.png (70.46 KiB) Viewed 764 times
rw2.png
rw2.png (42.5 KiB) Viewed 764 times
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Joypad cross input

Post by Tony Li »

In your Joystick Maps, you can assign multiple inputs to UIHorizontal and UIVertical (e.g., left stick and d-pad).
Post Reply