Greetings great unity peeps!
Intro:
I’ve been looking around for a while for an input system that had support for multiple things, first of is the possibility to change input mapping at run time which have been seen before, and second, is fully joystick support, but I also wanted a system that had support the controlkeys/macrokeys/keybindings. after searching for awhile i gave up and started to work on my own input system, which had all the mentioned thing! and to make it all better I wanted to let all you be able to use it, give feed back, and further develop this under creative common license(Look it up if you dont know the rules).
As an open source developer I always get happy to see people people use my work and see how my work can influence other people and I feel opensource is a good way to go for in the future to have even better and much more advance technology.
The System
Enough about me now into the system it self; the system it self uses input.getkey and input.getaxis and playerpref for it all to work, however the most of the system is setup automatic after implementing it.
The system takes about 5-10 minutes to setup in your current project from my assumptions, and does not slow down performance.
The system is “somewhat” well commented with XML and shouldn’t be too hard to use and setup but i most encourage the user to have at least some knowledge to scripting and/or C#.
How to setup
The system run on commands which can be setup in the class “InputManager” as well at control keys, standard input, and from there on the system will take care of the rest for you.
For the system to check for input you will want to in your Controller class add a single instantiate of “InputManager” and in a update function make sure to call inputManager.CheckControleKeys(); at least once! there after you just fill in if cases calling inputManager.CheckInput with a string which is the command you wanna check for input at e.g. move forward, and a key stage which can be up, down, and press. for further references, please refer to the demo.
the last and MOST important thing in setting your project up with the system is to setup 14 axis, as following:
3 for mouse movement called: MouseX, MouseY, ScrollWheel, set all those to the related axis, sensitivity 0,1, and deadzone 0.
next 10 axis is the joystick axis, and they should be called: Axis0X, Axis0Y, Axis1X… Axis4X, Axis4Y, all those should have sensitivity at 1, deadzone 0 or as desired, and add the correct axis to each of them.
The last axis should be called “None” and is only used in cases of you’re not using any axis for some joysticks, set sensitivity to 0 and deadzone to 100 to ensure the axis is “dead”
For further references please see the demo.
Demo/Download
And now for what you all want; the system and you can download it here and file is compressed using 7-zip, but you can use winrar or most other programs, I do prefer 7-zip tho!
Donate and Support
If you feel like buying me a cup of coffee go here: https://www.dropbox.com/s/dy5dd0jzvsjrx74/Index.html and download the html document (Dont have got a domain yet, may come around in the future) Open it, and throw a coins if like, THIS IS OPTIONAL!
Future Work
Maybe a little better support for axis and such but unity surely make this hard!
Known Bugs
None for now.