From d627616feed4f3f38d8adb315f6cd0f6cc64b69a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Kup=C5=9B?= Date: Wed, 1 Mar 2017 12:13:58 +0100 Subject: [PATCH] Added support for R70 mouse. --- Mouse.cpp | 3 +++ Mouse.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Mouse.cpp b/Mouse.cpp index 4b08905..11f5064 100644 --- a/Mouse.cpp +++ b/Mouse.cpp @@ -157,6 +157,9 @@ void Mouse::listDevices() { case BLOODY_AL9_PID: name = "Bloody AL9"; break; + case BLOODY_R70_PID: + name = "Bloody R70"; + break; default: name = "Unknown"; } diff --git a/Mouse.h b/Mouse.h index 807413e..b33d295 100644 --- a/Mouse.h +++ b/Mouse.h @@ -16,8 +16,9 @@ static const int BLOODY_R7_PID = 0x1485; static const int BLOODY_R8_1_PID = 0x14ee; static const int BLOODY_R3_PID = 0x1a5a; static const int BLOODY_AL9_PID = 0xf633; +static const int BLOODY_R70_PID = 0xf643; -static const int COMPATIBLE_PIDS[] = {BLOODY_V5_PID, BLOODY_V7_PID, BLOODY_V8_PID, BLOODY_R7_PID, BLOODY_R8_1_PID, BLOODY_R3_PID, BLOODY_AL9_PID}; +static const int COMPATIBLE_PIDS[] = {BLOODY_V5_PID, BLOODY_V7_PID, BLOODY_V8_PID, BLOODY_R7_PID, BLOODY_R8_1_PID, BLOODY_R3_PID, BLOODY_AL9_PID, BLOODY_R70_PID}; static const size_t COMPATIBLE_PIDS_SIZE = sizeof(COMPATIBLE_PIDS)/sizeof(COMPATIBLE_PIDS[0]); static const int A4TECH_MAGIC = 0x07;