Skip to content

[rcore][android] Gesture system no longer reports GESTURE_NONE on android #5010

Open
@lumenkeyes

Description

@lumenkeyes
  • [ x ] I tested it on latest raylib version from master branch
  • [ x ] I checked there is no similar issue already reported
  • [ x ] I checked the documentation on the wiki
  • [ x ] My code has no errors or misuse of raylib

Issue description

After updating to the latest raylib master, GetGestureDetected() no longer returns GESTURE_NONE in any situation. I believe this may be because the touch point count is now updated before calling ProcessGestureEvent instead of after it (changed in this commit). This may lead to the gesture having zero touch points, which there is no handling case for in rgestures.h.

Environment

  • Platform / OS: Android 10
  • OpenGL version: OpenGL ES 3.2 V@415.0

I have double-checked, and moving the block that updates the touch point count back to after the ProcessGestureEvent call does indeed cause the gesture system to report GESTURE_NONE again. However, perhaps the root cause of the problem is the lack of code in rgestures.h to handle the case of zero touch points. I'm not totally sure how it is meant to behave.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions