Check mouse status?

P

pleary

I just posted a message about getting a function to loop while the
mouse button is pressed down, and having the function stop when the
mouse button is released. This problem could be solved if, with
JavaScript, or any other client-side language that can be embedded in
HTML, I could check the status of the mouse button.

JavaScript can fire a function when an event happens, but could I
simply check the status of the mouse button whenever I want?
If anyone has any advice, I would greatly appreciate it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top