Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Assume all motion events are mouse events unless tool_type states oth…
- Loading branch information
Showing
with
4 additions
and
4 deletions.
-
+4
−4
src/video/mir/SDL_mirevents.c
|
@@ -224,12 +224,12 @@ HandleMotionEvent(MirMotionEvent const motion, SDL_Window* sdl_window) |
|
|
{ |
|
|
int cord_index; |
|
|
for (cord_index = 0; cord_index < motion.pointer_count; cord_index++) { |
|
|
if (motion.pointer_coordinates[cord_index].tool_type == mir_motion_tool_type_mouse) { |
|
|
HandleMouseEvent(motion, cord_index, sdl_window); |
|
|
} |
|
|
else if (motion.pointer_coordinates[cord_index].tool_type == mir_motion_tool_type_finger) { |
|
|
if (motion.pointer_coordinates[cord_index].tool_type == mir_motion_tool_type_finger) { |
|
|
HandleTouchEvent(motion, cord_index, sdl_window); |
|
|
} |
|
|
else { |
|
|
HandleMouseEvent(motion, cord_index, sdl_window); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|