Skip to content

Commit

Permalink
desperate for finding the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sonphantrung authored Dec 28, 2024
1 parent 9b26760 commit 75f1547
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sdltiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3343,6 +3343,7 @@ static void CheckMessages()
case SDL_FINGERMOTION:
dbg( D_INFO ) << "Fingermotion triggered.";
dbg( D_INFO ) << "ev.tfinger.fingerId: " << ev.tfinger.fingerId;
dbg( D_INFO ) << "ev.tfinger.touchId: " << ev.tfinger.touchId;
if( ev.tfinger.fingerId == 0 ) {
if( !is_quick_shortcut_touch ) {
dbg( D_INFO ) << "Not quick shortcut touch";
Expand Down Expand Up @@ -3379,6 +3380,7 @@ static void CheckMessages()
case SDL_FINGERDOWN:
dbg( D_INFO ) << "Fingerdown triggered.";
dbg( D_INFO ) << "ev.tfinger.fingerId: " << ev.tfinger.fingerId;
dbg( D_INFO ) << "ev.tfinger.touchId: " << ev.tfinger.touchId;
if( ev.tfinger.fingerId == 0 ) {
finger_down_x = finger_curr_x = ev.tfinger.x * WindowWidth;
finger_down_y = finger_curr_y = ev.tfinger.y * WindowHeight;
Expand Down Expand Up @@ -3413,6 +3415,7 @@ static void CheckMessages()
case SDL_FINGERUP:
dbg( D_INFO ) << "Fingerup triggered.";
dbg( D_INFO ) << "ev.tfinger.fingerId: " << ev.tfinger.fingerId;
dbg( D_INFO ) << "ev.tfinger.touchId: " << ev.tfinger.touchId;
if( ev.tfinger.fingerId == 0 ) {
finger_curr_x = ev.tfinger.x * WindowWidth;
finger_curr_y = ev.tfinger.y * WindowHeight;
Expand Down

0 comments on commit 75f1547

Please sign in to comment.