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] Fix IsMouseButtonUp() for PLATFORM_WEB and PLATFORM_DRM #3611

Merged
merged 2 commits into from Dec 7, 2023
Merged

[rcore] Fix IsMouseButtonUp() for PLATFORM_WEB and PLATFORM_DRM #3611

merged 2 commits into from Dec 7, 2023

Conversation

ghost
Copy link

@ghost ghost commented Dec 7, 2023

Changes

  1. Fixes IsMouseButtonUp() for PLATFORM_WEB by adding the missing handling for CORE.Input.Touch.currentTouchState[] on the MouseButtonCallback (R1096).

  2. Fixes IsMouseButtonUp() for PLATFORM_DRM by adding the missing handling for CORE.Input.Touch.currentTouchState[] on the PollInputEvents() (R574).

Credit

Reference

Environment

  • Compiled on Linux (Ubuntu 22.04 64-bit) and tested on Firefox (115.3.1esr 64-bit) and Chromium (117.0.5938.149 64-bit).
  • Compiled and 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.
  • 2: added DRM fix.

@ghost ghost changed the title [rcore] Fix IsMouseButtonUp() for PLATFORM_WEB [rcore] Fix IsMouseButtonUp() for PLATFORM_WEB and PLATFORM_DRM Dec 7, 2023
@raysan5 raysan5 merged commit a9ba51a into raysan5:master Dec 7, 2023
14 checks passed
@raysan5
Copy link
Owner

raysan5 commented Dec 7, 2023

@ubkp Thank you very much for reviewing the Web/DRM platforms!

@ghost ghost deleted the fix/web-keyuptouch branch December 7, 2023 19:43
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