From 3a612657de71eb2ae745525683fec3bb13aec1f3 Mon Sep 17 00:00:00 2001 From: Kirili4ik Date: Wed, 15 Sep 2021 19:22:11 +0300 Subject: [PATCH] add info to readme on how to add a new device --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ae882d7..fdcc592 100644 --- a/README.md +++ b/README.md @@ -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: