Skip to content

Commit

Permalink
Assume all motion events are mouse events unless tool_type states oth…
Browse files Browse the repository at this point in the history
…erwise.
  • Loading branch information
BrandonSchaefer committed Jun 4, 2014
1 parent 4fd03b9 commit d829af7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/video/mir/SDL_mirevents.c
Expand Up @@ -224,12 +224,12 @@ HandleMotionEvent(MirMotionEvent const motion, SDL_Window* sdl_window)
{ {
int cord_index; int cord_index;
for (cord_index = 0; cord_index < motion.pointer_count; 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) { if (motion.pointer_coordinates[cord_index].tool_type == mir_motion_tool_type_finger) {
HandleMouseEvent(motion, cord_index, sdl_window);
}
else if (motion.pointer_coordinates[cord_index].tool_type == mir_motion_tool_type_finger) {
HandleTouchEvent(motion, cord_index, sdl_window); HandleTouchEvent(motion, cord_index, sdl_window);
} }
else {
HandleMouseEvent(motion, cord_index, sdl_window);
}
} }
} }


Expand Down

0 comments on commit d829af7

Please sign in to comment.