- Home /
Access Joystick Axis and Mouse Delta without InputManager
I'm working on my own Input Manager first to allow customisation and secondly to allow for more flexible setup (GetDown() for axis inputs). My hope is to have a system where the programmer can just ask for a CommandName and doesn't has to care about if it's a key, axis, or mouse position.
All buttons, be it keyboard, mouse, or controller can be accessed through GetKey() in the same way through strings ("a", "joystick 1 button 0", etc). This however is not true for GetAxis(), where you can only get self-setup Axis. This would be ok if it's just Mouse axis, or one controller, but if you consider 4 controllers you'd have to setup 20+ axis manually.
Is there a way get axis values without the InputManager? Like Input.GetAxis("joystick 1 axis 0"), or Input.GetAxis("mouse x")?
If not, there should be, tbh.