Discuss Scratch
- Discussion Forums
- » Suggestions
- » Detection for right mouse or left mouse button
- The4thPixel
-
1000+ posts
Detection for right mouse or left mouse button
Welcome to the forums! Please don't bump old topics. You can detect right mouse clicking…define //when stage clicked event
define
if <mouse down?> then
set [buttonPressed v] to [left]
else
set [buttonPressed v] to [right]
endwhen green flag clicked
forever
if <<(buttonPressed) = [right]> and <touching [what needs to be right clicked v] ?>> then
broadcast [right click on (what needs be right clicked) v]
end
end
- The4thPixel
-
1000+ posts
Detection for right mouse or left mouse button
Hello Support.

I've noticed a lot of times now you've supported or no supported a suggestion without adding any thoughts to the discussion. Please consider elaborating. If you need help, Sigton has a helpful topic here that explains.
- jordan1060
-
500+ posts
Detection for right mouse or left mouse button
I think in griffpatch's minecraft it has thatI need it for the Minecraft game I am making. Using space for placing blocks confuses people so I would rather use right-click. Good suggestion!
But why would we need a right mouse option…
I'm indifferent
- Sprinternet
-
69 posts
Detection for right mouse or left mouse button
Support
if <right mouse button down?:: sensing> then
end
- Tristan-Nate
-
1 post
Detection for right mouse or left mouse button
Instead of the plain<mouse down?>
block, there should be a dropdown like this:<[right v] mouse down?>
<[left v] mouse down?>Supporter Count:i agree
9
Non-Supporter Count:
2
- gdfsgdfsgdfg
-
1000+ posts
Detection for right mouse or left mouse button
Congrats you revived an old postInstead of the plain<mouse down?>
block, there should be a dropdown like this:<[right v] mouse down?>
<[left v] mouse down?>Supporter Count:i agree
9
Non-Supporter Count:
2
Last edited by gdfsgdfsgdfg (May 23, 2023 15:21:52)
- gdfsgdfsgdfg
-
1000+ posts
Detection for right mouse or left mouse button
Support!
Why do you support? be constructive
- BigNate469
-
1000+ posts
Detection for right mouse or left mouse button
Bump because duplicate.
Anyways, the default option should always be the left mouse button one, because it's less confusing for people on tablets if it actually works at first.
All the current
There should also be a note somewhere, such as the FAQ page, stating that this assumes that you have not flipped the left and right mouse buttons. This isn't usually an issue these days- it's handled either by your OS or browser, but still.
Anyways, the default option should always be the left mouse button one, because it's less confusing for people on tablets if it actually works at first.
All the current
<mouse down?>blocks can simply be converted to
<[left v] mouse down? :: sensing>
There should also be a note somewhere, such as the FAQ page, stating that this assumes that you have not flipped the left and right mouse buttons. This isn't usually an issue these days- it's handled either by your OS or browser, but still.
Last edited by BigNate469 (Sept. 13, 2024 19:16:46)
- A-MARIO-PLAYER
-
1000+ posts
Detection for right mouse or left mouse button
████████
████████
████████
████████
████████
This can help with making context menus or maybe as an extra attack in a fighting project.
In addition we should add these hat blocks.
████████
████████
████████
████████
This can help with making context menus or maybe as an extra attack in a fighting project.
In addition we should add these hat blocks.
when this sprite [left clicked v] :: events hat cat
when this sprite [right clicked v] :: events hat cat
Last edited by A-MARIO-PLAYER (Sept. 13, 2024 19:36:23)
- meowgon
-
82 posts
Detection for right mouse or left mouse button
There was something like That was rejected already ( https://scratch.mit.edu/discuss/topic/779656/ )

Last edited by meowgon (Sept. 14, 2024 06:50:15)
- chriscreators14
-
500+ posts
Detection for right mouse or left mouse button
(#55)It's not rejected, it's a duplicate topic. That's why it was closed.
There was something like That was rejected already ( https://scratch.mit.edu/discuss/topic/779656/ )
![]()
- Discussion Forums
- » Suggestions
-
» Detection for right mouse or left mouse button