You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Boxer, click the mouse buttons demo box to navigate into it.
Run the doit box named go. Now Boxer will monitor your mouse clicks indefinitely.
Try different mouse clicks (e.g. click, option-click, command-click). The value of mouse-buttons is shown in the buttons box.
When you're done, stop Boxer's execution by choosing the menu item "Do > Stop" (Ctrl-.)
Here's a screenshot of how this looks:
Impact
This prevents the user from being able to set the velocity and acceleration vectors to zero (via command-click) when flying the Apollo Missions in the Vectors Demo microworld.
The text was updated successfully, but these errors were encountered:
rigdern
changed the title
mouse-buttons can't detect command- or option-clickmouse-buttons doesn't distinguish between click, command-click, & option-click
Jun 18, 2024
Comment on documented behavior: mapping regular click on Mac = middle click on Unix is weird. The "regular" button on unix is certainly the left.
Nowdays middle click on most mice is done by depressing the scroll wheel, so it's the least-convenient of the 3 buttons (and tends to emit extra scroll events).
I need to review the docs still on this one... the terminology in the manual might be a bit old, but the mapping between all three platforms should be the same at this point. I believe we're always mapping regular to left as well, although ideally at some future point in time we'd take into account the OS accessibility settings, which allow you to swap them around. However, but the times the clicks get to us, this remapping may have already taken place in our gui bindings.
Click, command-click, and option-click are currently indistinguishable because
mouse-buttons
returns2
for all three cases.Expected behavior according to docs
This is the expected behavior of
mouse-buttons
according to page 164 of Boxer Manual V2:mouse-buttons
(When the documentation says "Unix" what is it contrasting against? Mac? Windows?)
Observed behavior
Here's the behavior I saw in Boxer
3.4.18 2024-05-26
on macOS on a MacBook Air.mouse-buttons
mouse-buttons
Additionally, shift-click seems to cause the value of
mouse-buttons
to persist. Is this documented?Repro file
To try the mouse experiments for yourself:
mouse buttons demo.box
.mouse buttons demo
box to navigate into it.go
. Now Boxer will monitor your mouse clicks indefinitely.mouse-buttons
is shown in thebuttons
box.When you're done, stop Boxer's execution by choosing the menu item "Do > Stop" (Ctrl-.)
Here's a screenshot of how this looks:
Impact
This prevents the user from being able to set the velocity and acceleration vectors to zero (via command-click) when flying the Apollo Missions in the Vectors Demo microworld.
The text was updated successfully, but these errors were encountered: