Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Calculating Idle Time: Page 1 of 3 (3 Items)
   
Calculating Idle Time  
Can someone give me guidance on generically catching input events for my application?

I need to calculate the idle time of the user. 

My first thought was to create a thread that runs and checks the last active time compared to the current time to 
determine idle time.

However, my issue comes in when I am attempting to set the last active time for the user.  I was planning on adding a 
function to set the time for all of the callbacks for every button in the application, but that seems like a lot to keep
 track of.

Is there a callback that I can set for the entire application, or atleast for every window, that will be called 
everytime the user provides input via the mouse?

Thanks,
Kendall