how can I do the following:
when a user clicks on a button, I want to repeat my function as long as he holds the button down.

so how can I check the mouse state at the end of my function?