From 23c9d9d88c966ab66d853c294cd34e905e6817f0 Mon Sep 17 00:00:00 2001 From: Sergey Ilinykh Date: Fri, 16 Feb 2018 09:53:10 +0500 Subject: [PATCH] Added A7 --- Mouse.cpp | 3 +++ Mouse.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Mouse.cpp b/Mouse.cpp index f7f944b..328ddb3 100644 --- a/Mouse.cpp +++ b/Mouse.cpp @@ -160,6 +160,9 @@ void Mouse::listDevices() { case BLOODY_R70_PID: name = "Bloody R70"; break; + case BLOODY_A7_PID: + name = "Bloody A7"; + break; case BLOODY_A9_PID: name = "Bloody A9"; break; diff --git a/Mouse.h b/Mouse.h index 0988d75..a790658 100644 --- a/Mouse.h +++ b/Mouse.h @@ -17,9 +17,10 @@ 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 BLOODY_A7_PID = 0x7e36; static const int BLOODY_A9_PID = 0x1003; -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, BLOODY_A9_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, BLOODY_A7_PID, BLOODY_A9_PID}; static const size_t COMPATIBLE_PIDS_SIZE = sizeof(COMPATIBLE_PIDS)/sizeof(COMPATIBLE_PIDS[0]); static const int A4TECH_MAGIC = 0x07;