waterbearlang / waterbear

Visual block syntax for programming languages
http://waterbearlang.com/
358 stars 88 forks source link

898 input blocks #1290

Closed ghost closed 8 years ago

ghost commented 8 years ago

Added blocks for on mouse/touch down, up and move.

Here's a gist showing how the blocks work: 631f56bb432a5d6f0253

dethe commented 8 years ago

Can we rename all the "mouse [something]" blocks to be "pointer [something]"?

ghost commented 8 years ago

Yeah I thought we should rename them but wasn't sure what would be a good word. I think pointer is probably better, but I'm not sure it's great. I think it might be the same as using "Array" instead of "List", for people with a CS background, it makes sense, but for other users it may not.

CelticMinstrel commented 8 years ago

You could always use both – "mouse pointer ___".

dethe commented 8 years ago

@CelticMinstrel In that case it should be "mouse touch ___" but both (and stylus, touchpad, etc.) can be subsumed under "pointer" and in fact that's the way the DOM Events are (slowly) headed: https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent

CelticMinstrel commented 8 years ago

With touchscreens there's generally no mouse pointer though... but I guess you could say there's a physical pointer in the form of a finger or stylus...