ToddS
Topic Author
Posts: 14
Joined: 24 Jul 2013, 03:49

Joystick support in Unity

30 Jul 2013, 00:18

Do you have built-in support for joysticks in Unity? If not, is there a way for me to programmatically inject input to simulate mouse clicks and hover states, or set the currently focused control?

Thanks.

Todd
 
User avatar
sfernandez
Site Admin
Posts: 2991
Joined: 22 Dec 2011, 19:20

Re: Joystick support in Unity

30 Jul 2013, 14:34

There is no built-in support, our component expects to receive mouse and key events.

But you could write code to simulate a mouse pointer reading joystick axis, and using joystick buttons to simulate mouse clicks. You could place that code in the NoesisUIRenderer.cs UpdateInputs() function.

Let me know if you need help with that code ;)
 
ToddS
Topic Author
Posts: 14
Joined: 24 Jul 2013, 03:49

Re: Joystick support in Unity

30 Jul 2013, 15:21

That sounds good. I may be in touch again when I get to that point. ;)

Todd

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Semrush [Bot] and 8 guests