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

hook.KeyUp doesn`t work #677

Open
xuruiray opened this issue Aug 19, 2024 · 1 comment
Open

hook.KeyUp doesn`t work #677

xuruiray opened this issue Aug 19, 2024 · 1 comment

Comments

@xuruiray
Copy link

	for k, v := range mapping {
		hook.Register(hook.KeyDown, []string{k}, func(e hook.Event) {
			keyboardStatus[v-1] = true
			fmt.Println(keyboardStatus)
		})
		hook.Register(hook.KeyUp, []string{k}, func(e hook.Event) {
			keyboardStatus[v-1] = false
			fmt.Println(keyboardStatus)
		})
	}
@xuruiray
Copy link
Author

image

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

1 participant