how to detect mouse click and release using matlab commands

5 vues (au cours des 30 derniers jours)
Chandrasekhar
Chandrasekhar le 11 Mar 2013
I want to record the duration of mouse press. how can I do it I`m able to capture the mouse press event. Pls help me how to capture the mouse release event also
Thanks chandrasekhar
  1 commentaire
Chandrasekhar
Chandrasekhar le 8 Juin 2013
Hi, is there any way to get the time for how long the mouse button is pressed. I have to detect the mouse press and release events also

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 8 Juin 2013
For the timing, you can store the result of tick() somewhere when you get the button down event, and then toc() against that value when you get the button up event.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB Report Generator dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by