- Home /
Question by
Ravart · Feb 10, 2016 at 12:34 AM ·
joystickxboxcontroller
Get Joystick Input ( for example KeyCode.Joystick1Button0) inside Editor Mode
I would like to use the Joystick inside Unity Editor Mode, but everthing I tried didn't work (there are no events like with keyboard and mouse).
How can I use the joystick inside the Editor Mode?(Not playing)
Cheers
Comment
Answer by Flink91 · Feb 10, 2016 at 12:38 PM
Not sure what you want to do, but this might help: http://docs.unity3d.com/ScriptReference/ExecuteInEditMode.html
Answer by Ravart · Feb 10, 2016 at 11:19 PM
ExecuteInEditMode doesn't work, because Input.GetKey() only works while executing the game. The Joystick should be accessible inside the Editor Mode, for example I press a button and the editor script detects which one!
Is that maybe possible to do with XInput?