This function is not input specific so it should be elsewhere (not in input_event.h). E.g. it 'd be odd to have to include input_event.h in your app if you were looking for, say, 'mir_event_type_prompt_session_state_change'.
_______________________
This one also looks out of place as it's not input specific, yet it's defined in input_event.cpp.
_______________________
Nits :
Do we want some masks for MirKeyInputEventModifiers. E.g. mir_key_input_event_modifier_alt_mask = mir_key_input_event_modifier_alt |mir_key_input_event_modifier_alt_left | mir_key_input_event_modifier_alt_right;
_______________________
old_modifiers_to_new could be made more efficient by using masks.
Needs fixing :
216 +MirEventType mir_event_ get_type( MirEvent const* ev);
This function is not input specific so it should be elsewhere (not in input_event.h). E.g. it 'd be odd to have to include input_event.h in your app if you were looking for, say, 'mir_event_ type_prompt_ session_ state_change' . _______ _______ __
_______
637 +MirEventType mir_event_ get_type( MirEvent const* ev)
This one also looks out of place as it's not input specific, yet it's defined in input_event.cpp. _______ _______ __
_______
Nits :
Do we want some masks for MirKeyInputEven tModifiers. E.g. mir_key_ input_event_ modifier_ alt_mask = mir_key_ input_event_ modifier_ alt |mir_key_ input_event_ modifier_ alt_left | mir_key_ input_event_ modifier_ alt_right;
_______ _______ _______ __
old_modifiers_ to_new could be made more efficient by using masks.
_______ _______ _______ ____
883 + case mir_motion_ tool_type_ mouse:
Not sure why 'mouse' should return 'unknown'.