(key pressed) block

[scratchblocks]
(key pressed :: sensing)
[/scratchblocks]
This block would report false if no key on the keyboard is being pressed. Or a list of keys being pressed if one is.

Already made this:
https://snap.berkeley.edu/snap/snap.html#present:Username=joecooldoo&ProjectName=Current%20Key%20Pressed%20Block

it's not required. Always this can be make by easy script.
image

Nice :slight_smile:

Small point - Snap! convention is for reporters like this to usually report nothing instead of false.

It doesn't practically matter in 99.999% of cases but it's nice to stick with conventions :slight_smile:

item (1) of (keep items...)) can be replaced with find first.

Okay.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.