Author Topic: User inactivity  (Read 3277 times)

hvilela

  • Guest
User inactivity
« on: September 25, 2012, 06:18:59 PM »
Hey,

I would like to do something when the user is inactive for a while. For this I would need some kind of global listener that dispatches whenever a user interacts with any NGUI element.
Does NGUI provides such a feature?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: User inactivity
« Reply #1 on: September 25, 2012, 06:48:34 PM »
UICamera.genericEventHandler receives a copy of all the events. Sounds like that's what you want to tie into.

hvilela

  • Guest
Re: User inactivity
« Reply #2 on: September 26, 2012, 12:26:22 PM »
Just perfect.
Thanks mans!