In the Input Manager settings in the editor there is a toggle setting for “invert”. Is there an easy way I can just change that setting for that one axis through script? Or do I have to edit all instances of Input.GetAxis in all my scripts (argh
)?
Anyone?
No can do.
–Eric
Darn, it would make things so much easier…
Are you using Unitron?
If so, it has an advanced search function that will perform a search and replace operation on ALL open documents.
Not sure what that has to do with my question, so maybe I should explain my situation. I have a game that uses joystick / gamepad input. I’ve been told that on some joysticks the forward / reverse input is reversed. The only way to fix it is to change the “invert” setting in the editor’s input manager settings. I’d like to move that toggle into my game and was hoping there was an easy way to do this without creating some sort of “if” loop for all instances of joystick input in my game. The work around is to use a joystick utility that allows you to modify your joystick settings, but I’d rather do it in the game than to tell my customers they need to go buy a utility. I was just hoping there was an easier way. Guess not.
Sorry, I just saw the bit about editing your scripts and thought you had to change a bunch of code.
Hey, it might be worth it just to create your own boolean and multiply the axis information by -1 when that boolean is true. Don’t need any fancy utilities.