Author Topic: Input Manager for NGUI  (Read 4078 times)

bitomule

  • Guest
Input Manager for NGUI
« 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

broken

  • Full Member
  • ***
  • Thank You
  • -Given: 1
  • -Receive: 4
  • Posts: 140
    • View Profile
Re: Input Manager for NGUI
« Reply #1 on: May 09, 2013, 12:23:11 PM »
How about input on MacOS?

bitomule

  • Guest
Re: Input Manager for NGUI
« Reply #2 on: May 09, 2013, 03:04:27 PM »
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)