diff --git a/src/events/SDL_touch.c b/src/events/SDL_touch.c index 6c0388e7f7..4a3d4e1e8c 100644 --- a/src/events/SDL_touch.c +++ b/src/events/SDL_touch.c @@ -415,7 +415,7 @@ void SDL_SendTouchMotion(Uint64 timestamp, SDL_TouchID id, SDL_FingerID fingerid } // SDL_HINT_MOUSE_TOUCH_EVENTS: if not set, discard synthetic touch events coming from platform layer - if (mouse->mouse_touch_events == 0) { + if (!mouse->mouse_touch_events) { if (id == SDL_MOUSE_TOUCHID) { return; }