driver: g-wolves hsk pro support
This commit is contained in:
parent
134ebf724c
commit
9026d54920
@ -3,7 +3,7 @@ CFLAGS=$(shell pkg-config --cflags libusb-1.0) -O3 -Wall -shared
|
|||||||
LDFLAGS=$(shell pkg-config --libs libusb-1.0)
|
LDFLAGS=$(shell pkg-config --libs libusb-1.0)
|
||||||
|
|
||||||
ASSETS=$(shell find devices/ -name '*.png')
|
ASSETS=$(shell find devices/ -name '*.png')
|
||||||
FINAL_ASSETS=$(BUILD_DIR)/drivers/assets/gwolves-htx.png
|
FINAL_ASSETS=$(BUILD_DIR)/drivers/assets/gwolves-htx.png $(BUILD_DIR)/drivers/assets/gwolves-hts_plus.png $(BUILD_DIR)/drivers/assets/gwolves-hsk_pro.png
|
||||||
BUILD_DIR=../../build/
|
BUILD_DIR=../../build/
|
||||||
|
|
||||||
all: $(BUILD_DIR)/drivers/g-wolves.so
|
all: $(BUILD_DIR)/drivers/g-wolves.so
|
||||||
|
BIN
drivers/g-wolves/devices/gwolves-hsk_pro.png
Normal file
BIN
drivers/g-wolves/devices/gwolves-hsk_pro.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 66 KiB |
12
drivers/g-wolves/devices/hsk_pro.h
Normal file
12
drivers/g-wolves/devices/hsk_pro.h
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#ifndef HSK_PRO_H
|
||||||
|
#define HSK_PRO_H
|
||||||
|
|
||||||
|
#define HSK_PRO_ACE_PRODUCT_ID_WIRED 0x5804
|
||||||
|
#define HSK_PRO_ACE_PRODUCT_ID_WIRELESS 0x5803
|
||||||
|
#define HSK_PRO_ACE_PRODUCT_NAME "HSK PRO ACE"
|
||||||
|
|
||||||
|
#define HSK_PRO_IMAGE "gwolves-hsk_pro.png"
|
||||||
|
#define HSK_PRO_DPI_MAX_VALUE 26000
|
||||||
|
#define HSK_PRO_DPI_MAX_LEVEL_COUNT 5
|
||||||
|
|
||||||
|
#endif
|
@ -83,6 +83,9 @@ char* driver_get_name(void* handle)
|
|||||||
case HTS_PLUS_4K_PRODUCT_ID_WIRED:
|
case HTS_PLUS_4K_PRODUCT_ID_WIRED:
|
||||||
case HTS_PLUS_4K_PRODUCT_ID_WIRELESS:
|
case HTS_PLUS_4K_PRODUCT_ID_WIRELESS:
|
||||||
return HTS_PLUS_4K_PRODUCT_NAME;
|
return HTS_PLUS_4K_PRODUCT_NAME;
|
||||||
|
case HSK_PRO_ACE_PRODUCT_ID_WIRED:
|
||||||
|
case HSK_PRO_ACE_PRODUCT_ID_WIRELESS:
|
||||||
|
return HSK_PRO_ACE_PRODUCT_NAME;
|
||||||
default:
|
default:
|
||||||
return "Unknown G-Wolves mice";
|
return "Unknown G-Wolves mice";
|
||||||
}
|
}
|
||||||
@ -103,6 +106,9 @@ char* driver_get_image(void* handle)
|
|||||||
case HTS_PLUS_4K_PRODUCT_ID_WIRED:
|
case HTS_PLUS_4K_PRODUCT_ID_WIRED:
|
||||||
case HTS_PLUS_4K_PRODUCT_ID_WIRELESS:
|
case HTS_PLUS_4K_PRODUCT_ID_WIRELESS:
|
||||||
return HTS_PLUS_IMAGE;
|
return HTS_PLUS_IMAGE;
|
||||||
|
case HSK_PRO_ACE_PRODUCT_ID_WIRED:
|
||||||
|
case HSK_PRO_ACE_PRODUCT_ID_WIRELESS:
|
||||||
|
return HSK_PRO_IMAGE;
|
||||||
default:
|
default:
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,10 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
// Devices
|
||||||
#include "devices/htx.h"
|
#include "devices/htx.h"
|
||||||
#include "devices/hts_plus.h"
|
#include "devices/hts_plus.h"
|
||||||
|
#include "devices/hsk_pro.h"
|
||||||
|
|
||||||
#define VENDOR_ID 0x33e4
|
#define VENDOR_ID 0x33e4
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user