Mir

Activity log for bug #1311699

Date Who What changed Old value New value Message
2014-04-23 14:29:15 Daniel d'Andrada bug added bug
2014-04-23 17:46:19 Daniel d'Andrada summary MirEvent::action is not defined by the API MirMotionEvent::action is not defined by the API
2014-04-24 04:06:24 Daniel van Vugt mir: importance Undecided Medium
2014-04-24 04:06:49 Daniel van Vugt summary MirMotionEvent::action is not defined by the API MirMotionEvent::action needs stronger typing (to MirMotionAction etc)
2014-04-24 04:06:58 Daniel van Vugt mir: status New Triaged
2014-04-24 04:08:01 Daniel van Vugt description MirEvent::action is currently effectively an opaque value, as Mir headers do not specify its meaning. So event.h must either define counterparts to the android AMOTION_EVENT_ACTION_* values below or split up the action and pointer index into separate variables. """ /* Bit shift for the action bits holding the pointer index as * defined by AMOTION_EVENT_ACTION_POINTER_INDEX_MASK. */ #define AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT 8 enum { /* Bit mask of the parts of the action code that are the action itself. */ AMOTION_EVENT_ACTION_MASK = 0xff, /* Bits in the action code that represent a pointer index, used with * AMOTION_EVENT_ACTION_POINTER_DOWN and AMOTION_EVENT_ACTION_POINTER_UP. Shifting * down by AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT provides the actual pointer * index where the data for the pointer going up or down can be found. */ AMOTION_EVENT_ACTION_POINTER_INDEX_MASK = 0xff00, """ Right now in the "Qt compositor" code I had to resort to locally defining those values, which is a hack: "" // from android-input AMOTION_EVENT_ACTION_*, hidden inside mir bowels // mir headers should define them const int QtEventFeeder::MirEventActionMask = 0xff; const int QtEventFeeder::MirEventActionPointerIndexMask = 0xff00; const int QtEventFeeder::MirEventActionPointerIndexShift = 8; "" MirMotionEvent.action is currently an int for legacy android compatibility reasons. We need to clean this up and use MirMotionAction properly, unlike in examples... MirMotionAction action = static_cast<MirMotionAction>(event.motion.action & ~0xff00); OLD DESCRIPTION: MirEvent::action is currently effectively an opaque value, as Mir headers do not specify its meaning. So event.h must either define counterparts to the android AMOTION_EVENT_ACTION_* values below or split up the action and pointer index into separate variables. """ /* Bit shift for the action bits holding the pointer index as  * defined by AMOTION_EVENT_ACTION_POINTER_INDEX_MASK.  */ #define AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT 8 enum {     /* Bit mask of the parts of the action code that are the action itself.      */     AMOTION_EVENT_ACTION_MASK = 0xff,     /* Bits in the action code that represent a pointer index, used with      * AMOTION_EVENT_ACTION_POINTER_DOWN and AMOTION_EVENT_ACTION_POINTER_UP. Shifting      * down by AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT provides the actual pointer      * index where the data for the pointer going up or down can be found.      */     AMOTION_EVENT_ACTION_POINTER_INDEX_MASK = 0xff00, """ Right now in the "Qt compositor" code I had to resort to locally defining those values, which is a hack: "" // from android-input AMOTION_EVENT_ACTION_*, hidden inside mir bowels // mir headers should define them const int QtEventFeeder::MirEventActionMask = 0xff; const int QtEventFeeder::MirEventActionPointerIndexMask = 0xff00; const int QtEventFeeder::MirEventActionPointerIndexShift = 8; ""
2014-04-24 04:08:32 Daniel van Vugt tags clientapi input
2014-04-24 04:09:06 Daniel van Vugt summary MirMotionEvent::action needs stronger typing (to MirMotionAction etc) MirMotionEvent.action needs stronger typing (to MirMotionAction etc)
2014-11-19 22:24:33 Robert Carr mir: status Triaged In Progress
2014-11-19 22:24:36 Robert Carr mir: assignee Robert Carr (robertcarr)
2014-11-20 01:32:03 Daniel van Vugt mir: milestone 0.10.0
2014-11-21 00:20:00 Launchpad Janitor branch linked lp:~mir-team/mir/introduce-mir-event-2.0
2014-12-09 03:35:53 Launchpad Janitor branch linked lp:mir
2014-12-09 03:36:42 Daniel van Vugt mir: status In Progress Fix Committed
2014-12-09 03:36:49 Daniel van Vugt branch unlinked lp:mir
2015-01-08 18:09:22 Launchpad Janitor branch linked lp:ubuntu/vivid-proposed/mir
2015-01-09 02:39:49 Daniel van Vugt mir: status Fix Committed Fix Released
2015-01-09 02:39:54 Daniel van Vugt bug task added mir (Ubuntu)
2015-01-09 02:47:33 Daniel van Vugt mir (Ubuntu): importance Undecided Medium
2015-01-09 02:47:33 Daniel van Vugt mir (Ubuntu): status New Fix Released