You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm struggling to create what seems like should be a very basic use of pike: listen to two file descriptors, and if anything is read, print it out (without blocking).
My use case is I'd like to listen to several linux evdev devices (mouse, touchpad, keyboard for example).
I tried using example_event.zig as a starting off point, but I'm failing to understand how to connect file descriptors to a Notifier (I think?)
I'm also unsure why, when notifier.poll(10_000) is called in the example, it doesn't wait 10 seconds like I expect it should... unless it's actually receiving events, but then, what events is the example receiving?
Anyway, I'm new to Zig but like what I see here and just thought I'd write here in case this use case might help make Pike easier to pick up for others.
Thanks.
The text was updated successfully, but these errors were encountered:
I'm struggling to create what seems like should be a very basic use of pike: listen to two file descriptors, and if anything is read, print it out (without blocking).
My use case is I'd like to listen to several linux evdev devices (mouse, touchpad, keyboard for example).
I tried using
example_event.zig
as a starting off point, but I'm failing to understand how to connect file descriptors to a Notifier (I think?)I'm also unsure why, when
notifier.poll(10_000)
is called in the example, it doesn't wait 10 seconds like I expect it should... unless it's actually receiving events, but then, what events is the example receiving?Anyway, I'm new to Zig but like what I see here and just thought I'd write here in case this use case might help make Pike easier to pick up for others.
Thanks.
The text was updated successfully, but these errors were encountered: