Async key state

Returns asynchronous state of a keyboard key.

Parameters

A1 [in,1u]
Device: keyboard - 2
A2 [in,1u]
Message type - 3
AY [in,4i]
Key - it can be:
A3 [out,1b]
Whether the key is down

Description

This message allows to check the state of a particular keyboard key. Returned state comes from the time when this message is called. That's why this message is good to check the key state in every frame in real-time programs.