I'm experiencing an issue with touchscreen input on the latest version of RaspberryOS, which now uses the Wayland display server. Specifically, when using VKeyboard to capture touch events, each touch on the screen (e.g., when trying to press keys on a numeric on-screen keyboard) registers as a double tap, resulting in two numbers being entered with a single press.
This problem does not occur in custom Pygame code I wrote outside of VKeyboard, where a single touch triggers only one input as expected. The issue seems specific to how VKeyboard interacts with touchscreen events under Wayland, as this worked correctly on previous versions of RaspberryOS.
Steps to Reproduce:
Run a VKeyboard examples on the latest RaspberryOS with Wayland.
Use a touchscreen device to interact with an on-screen keyboard (e.g., a numeric keypad).
Press a key on the keyboard using the touchscreen.
Expected Behavior: Each touch should register a single tap, resulting in one input per touch.
Actual Behavior: Each touch registers as a double tap, resulting in two inputs for a single press.
Environment:
Raspberry Pi with RaspberryOS (latest version using Wayland)
Pygame & Python version: provided with the OS.
Additional Notes: This issue does not appear to be related to pygame itself, as custom code I wrote to handle touchscreen events works as expected outside of pygame. The problem seems specific to pygame’s handling of touch events under Wayland.
I'm experiencing an issue with touchscreen input on the latest version of RaspberryOS, which now uses the Wayland display server. Specifically, when using VKeyboard to capture touch events, each touch on the screen (e.g., when trying to press keys on a numeric on-screen keyboard) registers as a double tap, resulting in two numbers being entered with a single press.
This problem does not occur in custom Pygame code I wrote outside of VKeyboard, where a single touch triggers only one input as expected. The issue seems specific to how VKeyboard interacts with touchscreen events under Wayland, as this worked correctly on previous versions of RaspberryOS.
Steps to Reproduce:
Expected Behavior: Each touch should register a single tap, resulting in one input per touch.
Actual Behavior: Each touch registers as a double tap, resulting in two inputs for a single press.
Environment:
Additional Notes: This issue does not appear to be related to pygame itself, as custom code I wrote to handle touchscreen events works as expected outside of pygame. The problem seems specific to pygame’s handling of touch events under Wayland.