Skip to content

Conversation

@klemmm
Copy link

@klemmm klemmm commented Jul 21, 2025

Read multiple events per read() call instead of one-by-one. This prevents input loss when the app loop runs slower than the event rate.

This is necessary with "chatty" gamepads, such as the DualShock4 in bluetooth mode with the recent hid-playstation driver, which generates 1000+ events per seconds.

Fixes #145

klemmm added 2 commits July 21, 2025 09:54
Read multiple events per `read()` call instead of one-by-one.
This prevents input loss when the app loop runs slower than the event
rate.
klemmm pushed a commit to klemmm/libmatoya that referenced this pull request Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

evdev: events may be dropped on Linux with "chatty" gamepad if main loop is too slow

1 participant