Assume all motion events are mouse events unless tool_type states otherwise.
1.1 --- a/src/video/mir/SDL_mirevents.c Wed Jun 04 10:57:52 2014 -0700
1.2 +++ b/src/video/mir/SDL_mirevents.c Wed Jun 04 12:55:18 2014 -0700
1.3 @@ -224,11 +224,11 @@
1.4 {
1.5 int cord_index;
1.6 for (cord_index = 0; cord_index < motion.pointer_count; cord_index++) {
1.7 - if (motion.pointer_coordinates[cord_index].tool_type == mir_motion_tool_type_mouse) {
1.8 - HandleMouseEvent(motion, cord_index, sdl_window);
1.9 + if (motion.pointer_coordinates[cord_index].tool_type == mir_motion_tool_type_finger) {
1.10 + HandleTouchEvent(motion, cord_index, sdl_window);
1.11 }
1.12 - else if (motion.pointer_coordinates[cord_index].tool_type == mir_motion_tool_type_finger) {
1.13 - HandleTouchEvent(motion, cord_index, sdl_window);
1.14 + else {
1.15 + HandleMouseEvent(motion, cord_index, sdl_window);
1.16 }
1.17 }
1.18 }