Luna::HID::get_key_state
bool get_key_state(KeyCode key)
Checks the if the specified key on the keyboard is pressed.
Parameters
-
in key
The key to check.
Return value
Returns true
if the specified key is pressed, false
otherwise. If keyboard is not supported on the current platform, returns false
always.