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

Allow hotplug keyboards and/or restart system from unconnected keyboard #131

Open
osnr opened this issue Mar 21, 2024 · 3 comments
Open
Assignees

Comments

@osnr
Copy link
Collaborator

osnr commented Mar 21, 2024

No description provided.

@cwervo cwervo assigned cwervo and s-ol and unassigned cwervo Jun 4, 2024
@cwervo
Copy link
Collaborator

cwervo commented Jun 4, 2024

@s-ol if you have time & interest feel free to try tackling this as a separate PR. Thanks for #148 !

@s-ol
Copy link
Collaborator

s-ol commented Jun 7, 2024

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.

@cwervo
Copy link
Collaborator

cwervo commented Jun 7, 2024

Yeah, right now the whole keyboard stack is only supported on Linux. Polling is what I was initially imagining, yep!

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

3 participants