Open
Description
- [ 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.