(Redirected from Right Mouse Detection)
| This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective. |
Middle and right mouse detection was possible in Scratch 1.x in presentation mode which allowed Scratch to detect if the middle or right mouse button was being pressed.
Script
Here is the script:
when stage clicked::control if <not<mouse down?>> then . . . end
How it works
The When () Clicked block ran either when the item was clicked with any button on the mouse. The Mouse Down? block, however, only returned true if the left mouse button was down. However, it cannot tell the two buttons apart.
Example Uses
- Adding a hidden menu
- Making operating system projects more realistic