Closed sunshineplan closed 1 year ago
I haven't found a good cross-platform way to do conversion of arbitrary keycodes to chars yet, you will have to make your own hash table (map[uint16]string) on the computer it will run, if you find a better way please let me know.
I also had this problem, I mapped by map https://github.com/danbai225/down_tip/blob/main/module/keylog/keymap.go
I see some confusion or errors when listen keyboard on win10
Code:
When I press left shift, ctrl, alt and right alt, ctrl, shift, I get: (which I guess take a wrong rawcode)
When I press tab, space, enter, backspace, I get: (which rawcode cannot convert to keychar)
When I press something with esc, I get: (which rawcode cannot convert to keychar, and erase a char after it when printing)
Other keys display just perfectly