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?

 채택된 답변

Jan
Jan 2013년 4월 30일

0 개 추천

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

댓글 수: 2

SSOI SS
SSOI SS 2013년 4월 30일
where can I implement this TIMER? there is no callback called if the mouse is staying still in figure, correct?
SSOI SS
SSOI SS 2013년 4월 30일
Hi, I think I know how I implement this.
Thanks for your advice !!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

질문:

2013년 4월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by