Closed austin-schick closed 1 year ago
Looks good to me!
If you scroll the mouse wheel, onMousePress gets called with an interesting value for button that seems to indicate the direction and amount of the scroll. Partly this seems nice, for people who want to use it. But I think it's a bit surprising in bad way for most people. Maybe only call onMousePress if button
is <= 2?
What this PR does
onMousePress
andonMouseRelease
can now optionally takebutton
, which is an integer representing the button that was pressed.onMouseDrag
can optionally takebuttons
, which is a list of integers representing all pressed buttons.This is a port of https://github.com/cmu-cs-academy/cs-academy/pull/4823