Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Fix gestures for PLATFORM_DESKTOP_SDL #3499

Merged
merged 3 commits into from Nov 2, 2023
Merged

[core] Fix gestures for PLATFORM_DESKTOP_SDL #3499

merged 3 commits into from Nov 2, 2023

Conversation

ghost
Copy link

@ghost ghost commented Nov 1, 2023

Changes

  1. Adds the missing gestures handling for PLATFORM_DESKTOP_SDL.

  2. Does that by adding the ProcessGestureEvent(gestureEvent) call (R1169) and gestureEvent composition (R1149-R1166) inside the PollInputEvents(), similar to how it's done on PLATFORM_DESKTOP(L1744-L1769, L1779-L1799) and PLATFORM_DRM (L1584-L1585, L1715-L1731).

  3. Also complements the PollInputEvents() implementation by adding the missing CORE.Input.Touch.position to it (R971, R1119).

Reference

Environment

  • Tested on Linux (Ubuntu 22.04 64-bit) with SDL2 (2.28.4).

Edits

  • 1: editing.

@raysan5 raysan5 merged commit de1ceae into raysan5:master Nov 2, 2023
@raysan5
Copy link
Owner

raysan5 commented Nov 2, 2023

@ubkp thanks for the addition! actually, I neither noticed it was missing!

@ghost ghost deleted the fix/sdl-gestures branch November 2, 2023 13:14
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