Open osnr opened 5 months ago
I guess hotplug should be implemented simply by polling for event devices? /dev/input
could be watched by with inotify but that's not portable to Mac OS.
EDIT: Ah, so is evdev
input itself, so I guess we're only targeting Linux at this level. Still not sure that avoiding a polling loop here here warrants the complexity of using a C API though.
Yeah, right now the whole keyboard stack is only supported on Linux. Polling is what I was initially imagining, yep!
@s-ol if you have time & interest feel free to try tackling this as a separate PR. Thanks for #148 !