Check if mouse button is pressed

Version 1.1.0.0 (833 Bytes) by Mbvalentin
Check if mouse button is pressed programatically
351 Downloads
Updated 9 Mar 2017

View License

This function helps you find out, programatically, if any mouse button is clicked.
This can be very useful when configuring 'SizeChangeFcn' callbacks, for instance, when you may need to execute a certain action ONLY once the user has released the mouse button.

Cite As

Mbvalentin (2024). Check if mouse button is pressed (https://www.mathworks.com/matlabcentral/fileexchange/61976-check-if-mouse-button-is-pressed), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Migrate GUIDE Apps in Help Center and MATLAB Answers
Acknowledgements

Inspired: Determine whether a key is up or down

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0.0

Readme added

1.0.0.0