ldk_os_keyboard_key_down
Test whether the key was pressed during the current input update.
LDK_API bool ldk_os_keyboard_key_down(
LDKKeyboardState *state,
LDKKeycode keycode
);
Returns
True if the operation succeeds; false otherwise.
ldk_os_keyboard_key_is_pressed
Test whether the key is currently held.
LDK_API bool ldk_os_keyboard_key_is_pressed(
LDKKeyboardState *state,
LDKKeycode keycode
);
Returns
True when the queried condition holds; false otherwise.
ldk_os_keyboard_key_up
Test whether the key was released during the current input update.
LDK_API bool ldk_os_keyboard_key_up(
LDKKeyboardState *state,
LDKKeycode keycode
);
Returns
True if the operation succeeds; false otherwise.
ldk_os_keyboard_state_get
Get the OS keyboard state.
LDK_API void ldk_os_keyboard_state_get(LDKKeyboardState *outState);
Parameters
LDKKeyboardState *outState
- Receives the requested input state snapshot.