Skip to content

Commit

Permalink
Removed "three fingers" mode in android callback (not needed anymore
Browse files Browse the repository at this point in the history
since we can translate and rotate with two fingers)
  • Loading branch information
BrunoLevy committed Aug 22, 2023
1 parent 1758a76 commit a92ab67
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/lib/geogram_gfx/gui/user_callback_android.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,27 +178,7 @@ namespace {
last_length = length;
last_center = center;
last_button_ = 2;
} else if(nb_fingers == 3) {
if(last_button_ != -1 && last_button_ != 1) {
g_mouse_CB(
mouseX, mouseY, last_button_,
EVENT_ACTION_UP, EVENT_SOURCE_FINGER
);
}
if(last_button_ != 1) {
last_button_ = 1;
g_mouse_CB(
mouseX, mouseY, 1,
EVENT_ACTION_DOWN, EVENT_SOURCE_FINGER
);
} else {
g_mouse_CB(
mouseX, mouseY, 1,
decode_action(action), EVENT_SOURCE_FINGER
);
}
}

return 1;
}

Expand Down

0 comments on commit a92ab67

Please sign in to comment.