Skip to content

Commit

Permalink
use < 0 to get both SDL_TOUCH_MOUSEID and SDL_TOUCH_TOUCHID
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Jan 27, 2021
1 parent 33638fc commit cda57d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osdep/amiberry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,7 @@ void process_event(SDL_Event event)
return;
}

if (wm == SDL_TOUCH_MOUSEID && currprefs.input_tablet >= TABLET_MOUSEHACK)
if (wm < 0 && currprefs.input_tablet >= TABLET_MOUSEHACK)
{
/* absolute */
setmousestate(0, 0, event.motion.x, 1);
Expand Down

0 comments on commit cda57d1

Please # to comment.