Multiple pointers
Ref: https://discord.com/channels/@me/818068592708550696/867079855106555915 (but this wasn't the first time this was asked)
I've been enlightened and inspired by a recent exchange with an intellectual over email with a project regarding keys and on-screen keyboards. Although on-screen keyboards can't reliably detect for how long keys are held down, they should still be able to work by triggering the hat blocks. This is done by repeatedly sending the isDown: true thing to the VM
Perhaps something similar can be done with the "when this sprite clicked" block. Thus, this issue is multi-part:
- Investigate whether postIOData-ing isDown: true for mouse multiple times can trigger the "when this sprite clicked" hat block multiple times.
- Hopefully it does. Maybe some finicking might be required (eg if it requires a mouseup before the next mousedown)
- If this is not possible, close this issue.
- Implement.
- An option to support multiple fingers
- Every pointerdown should cause a isDown: true at the new pointer's location
- <mouse down?> should return whether at least one pointer is down. Should check what the existing behaviour is
- (mouse x) and (mouse y) can do whatever
Also, might consider adding an option to support on-screen keyboards?
I'm writing this late at night; hopefully when I see this later I don't get confused