uinput-controller: Map runes/keys directly and handle errors

This commit is contained in:
Unrud 2023-02-23 01:09:30 +01:00
parent 809d3a0064
commit d254ae5b0d
4 changed files with 150 additions and 129 deletions

View file

@ -102,7 +102,7 @@ func main() {
keysymsMap[unicode] = keysym
}
content := "// Code generated by keysyms.generator.go. DO NOT EDIT.\n" +
"//go:build portal || x11 || uinput\n\n" +
"//go:build portal || x11\n\n" +
"package inputcontrol\n\n" +
"var keysymsMap = map[rune]Keysym{\n"
keys := make([]rune, 0)