Compare commits

...

2 Commits

Author SHA1 Message Date
paring 24e7b99ddc
chore: add role guide 2022-11-01 20:45:02 +09:00
paring 12429b0ffd
fix: remove unused variable definition 2022-11-01 20:40:24 +09:00
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,13 @@
# Skyhook-Native
Very simple Keyboard & Mouse hook, meant for rhythm games.
## Troubleshooting
### Hook does not work on Linux
You should add `input` role for the user.
```sh
sudo usermod -aG input $USER
```

View File

@ -53,7 +53,7 @@ impl InputReader {
let value = convert_bit(vec![buffer[20], buffer[21]]);
if event_type == 2 {
let status = match value {
match value {
0 => callback(Event::KeyRelease(code)),
2 => callback(Event::KeyPress(code)),
_ => continue,