Title: Fix: [rcore][drm] GetTouchPointCount() returns 1 when screen is not touched #4842
Description:
This pull request resolves issue #4842. The bug was causing GetTouchPointCount() to incorrectly return 1 on the DRM platform, even when no touch input was present.
The fix is to add CORE.Input.Touch.pointCount = 0; at the beginning of the PollInputEvents() function. This ensures that the touch point count is correctly reset at the start of every frame, preventing the use of stale or incorrect data.
Testing and Validation
I have personally tested this fix on a Raspberry Pi 4 with an official 7" touchscreen display, which is a standard DRM platform environment.
The test was successful:
Without touching the screen, the GetTouchPointCount() function now correctly and consistently returns 0.
When touching the screen with one finger, the function immediately returns 1.
The fix works as expected and completely resolves the bug. The code is now ready to be merged.