We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27966ac commit 431e065Copy full SHA for 431e065
cmd/kb/main.go
@@ -11,7 +11,9 @@ import (
11
func main() {
12
fn := func(event winuserio.LowLevelKeyboardEvent) {
13
if event.KeyboardButtonAction() == winuserio.WMKeyDown {
14
- fmt.Printf("%q\n", event.HookStruct().VirtualKeyCode())
+ fmt.Printf("%q (%d) down\n", event.HookStruct().VirtualKeyCode(), event.HookStruct().VkCode)
15
+ } else if event.KeyboardButtonAction() == winuserio.WMKeyUp {
16
+ fmt.Printf("%q (%d) up\n", event.HookStruct().VirtualKeyCode(), event.HookStruct().VkCode)
17
}
18
19
0 commit comments