Skip to content

tvOS: add SDL_HINT_APPLE_TV_REMOTE_SWIPE_GESTURES to control swipe recognizers#15864

Open
sreuter wants to merge 1 commit into
libsdl-org:mainfrom
sreuter:fix/tvos-remote-swipe-gestures-hint
Open

tvOS: add SDL_HINT_APPLE_TV_REMOTE_SWIPE_GESTURES to control swipe recognizers#15864
sreuter wants to merge 1 commit into
libsdl-org:mainfrom
sreuter:fix/tvos-remote-swipe-gestures-hint

Conversation

@sreuter

@sreuter sreuter commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

On tvOS, SDL installs UISwipeGestureRecognizers on the view so Apple TV remote swipes generate arrow-key events. When one recognizes, it cancels the in-progress touches, because the recognizers don't set cancelsTouchesInView = NO. Apps that read the remote touchpad's raw touch events directly (for example, absolute or relative pointer control) get their touch sequence cut off mid-gesture.

This adds SDL_HINT_APPLE_TV_REMOTE_SWIPE_GESTURES to gate installation of those recognizers. Default is "1", which keeps the current behavior. Set "0" to skip them and receive uninterrupted touch events. The hint is read when the view is created.

…cognizers

On tvOS, SDL installs UISwipeGestureRecognizers on the view so Apple TV remote
swipes generate arrow-key events. When one recognizes, it cancels the in-progress
touches, because the recognizers don't set cancelsTouchesInView = NO. Apps that
read the remote touchpad's raw touch events directly (for example, absolute or
relative pointer control) get their touch sequence cut off mid-gesture.

Add SDL_HINT_APPLE_TV_REMOTE_SWIPE_GESTURES to gate installation of those
recognizers. Default is "1", which keeps the current behavior. Set "0" to skip
them and receive uninterrupted touch events.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant