add info to readme on how to add a new device

This commit is contained in:
Kirili4ik
2021-09-15 19:22:11 +03:00
parent d16c23e520
commit 3a612657de

View File

@@ -14,7 +14,21 @@ cmake .
make
```
# Usage
## Add new bloody devices
1. Get USB PID of device:
```
~$ lsusb -d 09da: | cut -d ' ' -f6 | cut -d ':' -f2
```
2. Add that PID to Mouce.h & Mouce.cpp
Mouse.h: add line with PID and add name to COMPATIBLE_PIDS variable as all the other mouses.
Mouse.cpp: add 3 lines: case, name and break; as all the other mouses.
## Run
```
sudo ./bloody
Available devices: