(Redirected from Right Mouse Detection)
|This article or section documents a feature not included in the current version of Scratch (2.0). It is only useful from a historical perspective.|
This tutorial shows how to detect if the right mouse is down in Scratch 1.4.
|Note:||This will only work offline in presentation mode.|
The When () Clicked block fires either when the item is clicked with the left mouse button or the right mouse button. The Mouse Down? block, however, only reports true if the left mouse button is down.
when Stage clicked :: events hat if <mouse down?> then set [mouse v] to [left] else set [mouse v] to [right] end
You now have a script that will detect if the right mouse button is clicked.
- Adding a hidden menu
- Making Operating System projects more realistic