Function miral::toolkit::mir_event_get_type¶
Defined in File toolkit_event.h
Function Documentation¶
-
MirEventType miral::toolkit::mir_event_get_type(MirEvent const *event)¶
Retrieves the type of a MirEvent.
Now preferred over direct access to ev->type. In particular ev->type will never be mir_event_type_input and mir_event_get_type is the only way to ensure mir_event_get_input_event will succeed.
- Parameters:
event – [in] The event
- Returns:
The event type