Function miral::toolkit::mir_input_event_get_keyboard_event

Function Documentation

MirKeyboardEvent const *miral::toolkit::mir_input_event_get_keyboard_event(MirInputEvent const *event)

Retrieve the MirKeyboardEvent associated with a given input event.

Parameters:

event[in] The input event

Returns:

The MirKeyboardEvent or NULL if event type is not mir_input_event_type_key