Skip to content

Commit

Permalink
Added support: R8
Browse files Browse the repository at this point in the history
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
  • Loading branch information
nefelim4ag committed Jan 22, 2018
1 parent ae33367 commit 8ac3427
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Mouse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ void Mouse::listDevices() {
case BLOODY_R8_1_PID:
name = "Bloody R8-1";
break;
case BLOODY_R8_PID:
name = "Bloody R8";
break;
case BLOODY_R3_PID:
name = "Bloody R3";
break;
Expand Down
3 changes: 2 additions & 1 deletion Mouse.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ 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 BLOODY_R8_PID = 0x7c10;
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_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_R8_PID, BLOODY_R3_PID, BLOODY_AL9_PID, BLOODY_R70_PID, BLOODY_A9_PID};
static const size_t COMPATIBLE_PIDS_SIZE = sizeof(COMPATIBLE_PIDS)/sizeof(COMPATIBLE_PIDS[0]);

static const int A4TECH_MAGIC = 0x07;
Expand Down

0 comments on commit 8ac3427

Please sign in to comment.