>> }
>> Could be a one liner:
>> return old_kev_from_new(kev).action;
Not quite. mir_key_action_multiple does not correspond to mir_keyboard_action_repeat. mir_key_action_multiple is an unused feature from android relating to delivering multiple distinct keys in one event. mir_keyboard_action_repeat corresponds to AKEY_EVENT_ACTION_DOWN and repeatCount > 0.
>> } from_new( kev).action;
>> Could be a one liner:
>> return old_kev_
Not quite. mir_key_ action_ multiple does not correspond to mir_keyboard_ action_ repeat. mir_key_ action_ multiple is an unused feature from android relating to delivering multiple distinct keys in one event. mir_keyboard_ action_ repeat corresponds to AKEY_EVENT_ ACTION_ DOWN and repeatCount > 0.