Joystick support in Unity
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
Thanks.
Todd
-
sfernandez
Site Admin
- Posts: 3184
- Joined:
Re: Joystick support in Unity
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
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
Re: Joystick support in Unity
That sounds good. I may be in touch again when I get to that point.
Todd
Todd
Who is online
Users browsing this forum: Bing [Bot] and 3 guests