From e1d7d4c72b8252a81af4919f4b769e3f560cbed2 Mon Sep 17 00:00:00 2001 From: Yaroslav Sidlovsky Date: Sat, 28 Nov 2015 21:36:48 +0300 Subject: [PATCH] added support for Bloody R8-1 --- Mouse.cpp | 3 +++ Mouse.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Mouse.cpp b/Mouse.cpp index ef583e2..876f677 100644 --- a/Mouse.cpp +++ b/Mouse.cpp @@ -148,6 +148,9 @@ void Mouse::listDevices() { case BLOODY_R7_PID: name = "Bloody R7"; break; + case BLOODY_R8_1_PID: + name = "Bloody R8-1"; + break; default: name = "Unknown"; } diff --git a/Mouse.h b/Mouse.h index 07afbe2..8377347 100644 --- a/Mouse.h +++ b/Mouse.h @@ -13,8 +13,9 @@ static const int BLOODY_V5_PID = 0x172A; static const int BLOODY_V7_PID = 0xF613; static const int BLOODY_V8_PID = 0x11F5; static const int BLOODY_R7_PID = 0x1485; +static const int BLOODY_R8_1_PID = 0x14ee; -static const int COMPATIBLE_PIDS[] = {BLOODY_V5_PID, BLOODY_V7_PID, BLOODY_V8_PID, BLOODY_R7_PID}; +static const int COMPATIBLE_PIDS[] = {BLOODY_V5_PID, BLOODY_V7_PID, BLOODY_V8_PID, BLOODY_R7_PID, BLOODY_R8_1_PID}; static const size_t COMPATIBLE_PIDS_SIZE = sizeof(COMPATIBLE_PIDS)/sizeof(COMPATIBLE_PIDS[0]); static const int A4TECH_MAGIC = 0x07;