Implement a callback for not-moving mouse cursor

Hi, I have a question and any possible solution is welcome:
How can I implement a callback which is called if the mouse is staying still for a while (e.g. cursor change interval > 0.05 sec.), but while the mouse is quickly moving (e.g. cursor change interval < 0.05 sec.), this callback won't be called?
Any ideas?

 Accepted Answer

Use a TIMER, which triggers every 0.05 seconds and compare the mouse position.

2 Comments

where can I implement this TIMER? there is no callback called if the mouse is staying still in figure, correct?
Hi, I think I know how I implement this.
Thanks for your advice !!

Sign in to comment.

More Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Asked:

on 30 Apr 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!