-
-
Notifications
You must be signed in to change notification settings - Fork 12
Make get_event nonblocking #3
Comments
I combined file descriptor watching and event retrieval into a single method, therefor |
yeah, I think the compositor in python is a bit of a niche use-case :) but you can imagine e.g. games that need direct access to the devices and have their own event loops. afaict the only way to check if there are events is to call |
Ok, now I get this. |
there is On that note: if you don't have |
Oh I completely forgot about that function. This would require far less modification to existing code, I think I'll just implement |
Note, I'm going by the documentation here, not by the code.
I'm surprised that you opted to block on
get_event
- that seems not ideal for anything but the most basic tools that just need to pull events off and process them. libinput is primarily designed to be integrated into compositors with their own event loops, making this nonblocking would be an important feature here.The text was updated successfully, but these errors were encountered: