# Problems with GetMouse; how to know when button is released

**URL:** <https://psychtoolbox.discourse.group/t/problems-with-getmouse-how-to-know-when-button-is-released/1912>\
**Category:** Uncategorized\
**Created:** [May 13, 2003, 3:12pm UTC](https://psychtoolbox.discourse.group/t/problems-with-getmouse-how-to-know-when-button-is-released/1912 "2003-05-13T15:12:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)\
**Post date:** [May 13, 2003, 3:12pm UTC](https://psychtoolbox.discourse.group/t/problems-with-getmouse-how-to-know-when-button-is-released/1912/1 "2003-05-13T15:12:03Z")

</div>

I am working with GetMouse and it seems the buttons returns 1 when   
it is pressed once only. The documentation gives me the impression   
that as long as keep the button down it should keep returning 1.   
But, it returns 1 only the first time, and then returns 0 for every   
GetMouse call afterwards.  
  
Anyways, if this what it was meant to work as, then how do I get   
that the mouse button has been released?  
  
Thanks.
