EnigmaticaGH / Hookshot

2D Platformer about a certain Pepe that can hook onto stuff with its tongue.
https://kjarosz.github.io/Hookshot/Hookshot
0 stars 0 forks source link

Keybing script should use callbacks, not Update function to run key capture events. #43

Open kjarosz opened 8 years ago

kjarosz commented 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.

EnigmaticaGH commented 8 years ago

Unity has an OnGUI function that captures many kinds of events-- including keystroke presses. I will look into using that.