Is it possible to move the mouse with a controller joystick?
Or is it possible to select buttons with a joystick?
Is it possible to move the mouse with a controller joystick?
Or is it possible to select buttons with a joystick?
Sure, tie a string between your mouse and joystick. Moving your joystick will now move your mouse!
I’ll wager what you mean to ask is, with Unity can you control cursor movement and in-game actions like FIRE or JUMP or CLICK with a Joystick? The answer is yes, and doing so is discussed on the following page:
If you have a more specific question please clarify. ![]()
I am not quite sure what you mean by tie a string between the controller and mouse, could you elaborate?
I actually meant controlling the mouse with a joystick so you can mouse over and click the GUI buttons without actually using the mouse. I have my game set up with multiple controller support, I just need to know how to control the GUI from the controller so you don’t have to switch between the two ever.
Thanks.
He was just kidding ![]()
As for your question, I’m not sure if there’s a direct way to interact with GUI controls using something other than the mouse (e.g. a game controller). There have been times when I thought something couldn’t be done in Unity and then it turned out it could, so I hesitate to say for sure that it can’t be done. However, my suspicion is that if you want to create a controller-driven GUI system, you may need to code it (or at least part of it) manually.
Well are there any GUI Button functions for settings isMouseOver, isHighlighted, or anything like that. The API doesn’t seem to have anything like that unless I missed it. Thanks.