Skip to content

Desktop.WaitKeyEvent

Name Mandatory Description Default Type
⬅️ Input The input of the shard, if any None
Output ➡️ The resulting output of the shard Int2
MaxQueueSize No Maximum number of events to queue before dropping old ones. 100 Int

Pauses the wire and waits for keyboard events.

The output of this shard will be a Int2.

  • The first integer will be 0 for Key down/push events and 1 for Key up/release events.
  • The second integer will the scancode of the key.