Reputation:
Greetings,
I'm trying to get a ui button to have dual identities. If the user pushes it normally, an event fires (this works already). If the user pushes and holds it for some time period (2 seconds for example) a different event fires.
Any suggestions on a way to handle the "hold it down for 2 seconds" event?
Thanks!
Upvotes: 1
Views: 551
Reputation:
That looks good too.....
But I took another approach (should have delayed my question)....
I simply set the current date/time on then push event, and check for the time difference on the release inside event. If longer then xx seconds do the alternate function.
Works like a charm. Sorry for the premature-e-post-ulation...
Upvotes: 0