Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: bitomule on May 09, 2013, 04:41:21 AM
-
Hi, I've just uploaded to GitHub the Input Manager I use for my games.
It allows you to use NGUI buttons like Unity native Input. Example:
_GTInputManager.GetButton("ButtonName");
_GTInputManager is the reference to the manager on Scene. This code will return true while the button called ButtonName is Pressed. Yes, you can know when a button is hold and you can also use:
_GTInputManager.GetButtonDown("ButtonName");
and just when true the first time the button is pressed.
Feel free to use it or suggest changes. ;)
https://github.com/bitomule/GTInput
-
How about input on MacOS?
-
Hi broken,
it uses NGUI native events so it also works on Pc/Mac. It evens allow you to map keyboard keys to interface buttons (I use it for debug on mac)