Implement a callback for not-moving mouse cursor

4 vues (au cours des 30 derniers jours)
SSOI SS
SSOI SS le 30 Avr 2013
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?

Réponse acceptée

Jan
Jan le 30 Avr 2013
Use a TIMER, which triggers every 0.05 seconds and compare the mouse position.
  2 commentaires
SSOI SS
SSOI SS le 30 Avr 2013
where can I implement this TIMER? there is no callback called if the mouse is staying still in figure, correct?
SSOI SS
SSOI SS le 30 Avr 2013
Hi, I think I know how I implement this.
Thanks for your advice !!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by