Check if mouse button is pressed
Version 1.1.0.0 (833 Bytes) by
Mbvalentin
Check if mouse button is pressed programatically
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 LinuxCategories
Find more on Migrate GUIDE Apps in Help Center and MATLAB Answers
Tags
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!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.