How to test iOS Joysticks in Editor Game Window?

Hello,

Another newbie question here: Say I have a dual joystick setup for iOS. Is there some way - in the editor - to make the joysticks respond to mouse clicks/drags as if they were touches on the actual device? Deploying to device is slow, and the Unity Remote is very laggy for me.

Thanks,

Lou

1 Answer

1

You would do it in the same way that you would normally use joystick input.

In the Input Manager you would add joystick axes/buttons to the commands you use (move, jump, shoot, etc). Now, while your in the editor, Unity will also treat input from the joystick the very same as input from your game.

This is the preferred approach because it’s easier to maintain your code and doesn’t require the use of pre-processor directives to keep joystick input detection out of your iOS build.

Hope that helps!