Open kjarosz opened 8 years ago
Currently, KeybindsScripts runs a tight loop trying to capture keystrokes. It should use a callback. See if there is a way to have the system call a class method when a button is pressed. This will prevent us from having to run the loop constantly.
Unity has an OnGUI function that captures many kinds of events-- including keystroke presses. I will look into using that.
Currently, KeybindsScripts runs a tight loop trying to capture keystrokes. It should use a callback. See if there is a way to have the system call a class method when a button is pressed. This will prevent us from having to run the loop constantly.