Hi there! I want a keybinding system. After researching for way to many hours, I dont really know if its even possible… For my flightsimulator, you should be able to set the axes of the controllers to do things. but how can I do that?
This is how I did it for keys:
void OnGUI()
{
Event e = Event.current;
if (e.isKey)
{
Debug.Log("Detected character: " + e.keyCode);
//it displays the key you press.
}
}
Now How can I display axes from controllers/joysticks?
Thanks for help, Jonas