"Key * pressed" procedure condition block

Upvotes: 0
Issue description


EDIT: turns out that key bind DOES detect key release; using that and a global boolean I got thing to work exactly like I wanted. Still would be a nice feature though, so I'm gonna let this stay up here.

Original post:

Wouldn't it be nice to have a block in the procedure editor that outputs "true" while key(*dropdown menu*) is pressed and output "false" while the key is not pressed? like a condition:

if/while (key LSHIFT pressed) {

I know there is a key bind element option, but that only gives a signal when you start pressing the key, and it doesn't detect when you've stopped pressing it.

Is there a way I can work around this problem, or am I gonna have to leave it at this feature request?

Issue comments

Submitted by Klemen on Sat, 02/02/2019 - 20:25

We will consider adding this check.

Submitted by Klemen on Sat, 02/23/2019 - 17:12

Unfortunately, checking key press is client side only. We won't add this as official procedure block as this block would crash servers. Consider just using key bindings instead.