-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Resolving Key Codes on Linux (#594)
Since we brought back X11, we can now mostly just use the established X11 connection to resolve the key codes. This however does not work with the `evdev` implementation. The solution there is to lazily open a connection to X11 when trying to resolve a key code and simply fail resolving the key code when a connection can't be established, then as before, falling back onto the US keyboard layout. An unfortunate side effect of this all however is that resolving a key code is now stateful, meaning that you always need a `Hook` to do so.
- Loading branch information
Showing
9 changed files
with
1,084 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.