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 - multigesture and finger events not being delivered
Summary: multigesture and finger events not being delivered
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.1
Hardware: x86 macOS 10.15
: P2 major
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-21 16:51 UTC by Mark Callow
Modified: 2020-05-30 00:19 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.