Compare commits
2 Commits
2acb353472
...
24e7b99ddc
Author | SHA1 | Date |
---|---|---|
paring | 24e7b99ddc | |
paring | 12429b0ffd |
10
README.md
10
README.md
|
@ -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
|
||||
```
|
||||
|
|
|
@ -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,
|
||||
|
|
Reference in New Issue