We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5152

Summary: multigesture and finger events not being delivered
Product: SDL Reporter: Mark Callow <libsdl.org>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: HG 2.1   
Hardware: x86   
OS: macOS 10.15   

Description Mark Callow 2020-05-21 16:51:26 UTC
On macOS SDL_MULTIGESTURE and SDL_FINGERUP (& likely SDL_FINGERDOWN) events are not being delivered. I first noticed in my own app then I tried testgesture. It doesn't work either.

The problem first appeared when I updated my libSDL2 to get the fix so SDL apps are no longer seen to be sniffing the keyboard on macOS Catalina. That was the tip around April 20th 2020. It is still there in the current tip changeset 13845.

I am running macOS 10.15.4.
Comment 1 Sam Lantinga 2020-05-29 23:36:39 UTC
We changed it so Mac trackpad events come in as mouse events by default, to match most customers' expectations.

You can change this by setting SDL_HINT_MOUSE_TOUCH_EVENTS to "1", or as an environment variable SDL_MOUSE_TOUCH_EVENTS=1 before you run your game, to verify that this fixes it.

Feel free to reopen this bug if that's not the problem here.
Comment 2 Mark Callow 2020-05-30 00:19:35 UTC
> You can change this by setting SDL_HINT_MOUSE_TOUCH_EVENTS to "1"

This fixed the problem. Thanks.