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

Touchscreen Input Registers Double Taps on RaspberryOS with Wayland #28

Open
Y111 opened this issue Sep 7, 2024 · 0 comments
Open

Touchscreen Input Registers Double Taps on RaspberryOS with Wayland #28

Y111 opened this issue Sep 7, 2024 · 0 comments

Comments

@Y111
Copy link

Y111 commented Sep 7, 2024

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.

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

No branches or pull requests

1 participant