getKey
fn
bool getKey(int key) nothrow @nogc @trustedChecks if a key is currently pressed.
This queries the current keyboard state, not the event state.
Parameters
key | Key code to check |
Returns
true if the key is currently pressed