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

[rcore] Optimize gesture handling for PLATFORM_DRM #3616

Merged
merged 1 commit into from Dec 11, 2023
Merged

[rcore] Optimize gesture handling for PLATFORM_DRM #3616

merged 1 commit into from Dec 11, 2023

Conversation

ghost
Copy link

@ghost ghost commented Dec 8, 2023

Changes

  1. Optimizes the gesture handling for PLATFORM_DRM by reusing the touchAction var (R754, R769) instead of the now redundant gestureUpdate (L615, L634, L648, L664, L673, L709, L717, L733).

Code example

  • This change can be tested with the core_input_gestures_web.c example or the core_input_gestures.c example.

Environment

  • Tested on Raspberry Pi 3 Model B 1.2 (2015) with Linux (Raspberry Pi OS 12 Bookworm 32-bit armhf).

Edits

  • 1: added line marks; editing.

@raysan5 raysan5 merged commit 44eeda2 into raysan5:master Dec 11, 2023
14 checks passed
@raysan5
Copy link
Owner

raysan5 commented Dec 11, 2023

@ubkp Thanks! Nice optimization! I like optimizations that remove code and complexity! :D

@ghost ghost deleted the fix/drm-gestures branch December 11, 2023 12:31
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