getKey

fnbool getKey(int key) nothrow @nogc @trusted

Checks if a key is currently pressed.

This queries the current keyboard state, not the event state.

Parameters

keyKey code to check

Returns

true if the key is currently pressed