Add Anko KM43277483 USB Gaming Mouse support
This commit is contained in:
parent
e1ce61778c
commit
cee841f3ba
3 changed files with 6 additions and 4 deletions
|
|
@ -53,7 +53,7 @@ void InstantMouseController::SendColor(RGBColor color)
|
|||
{
|
||||
/*---------------------------------------------------------*\
|
||||
| Packet details |
|
||||
| 07 X4 0G RB 00 00 00 00 |
|
||||
| 07 14 XG RB 00 00 00 00 |
|
||||
| where X is the DPI slot |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
|
|
@ -86,10 +86,10 @@ void InstantMouseController::SetMode(uint8_t mode_value, uint8_t speed, uint8_t
|
|||
| FF = constant |
|
||||
| - = still undiscovered/useless |
|
||||
| M = mode |
|
||||
| S = speed 0 -> 5 (6 and more makes the effect static) |
|
||||
| S = speed 0 -> 5 (6 and above makes the effect static) |
|
||||
| N = number of leds |
|
||||
| D = direction (0/1) |
|
||||
| B = brightness (0 full, F off) |
|
||||
| B = brightness (0 full, 7 off) |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
uint8_t led_mask = 0xB;
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
#define INSTANT_MICROELECTRONICS_VID 0x30FA
|
||||
#define ADVANCED_GTA_250_PID 0x1030
|
||||
#define ANKO_KM43243952_VID 0x1440
|
||||
#define ANKO_KM43277483_VID 0x1540
|
||||
|
||||
void DetectInstantMouseControllers(hid_device_info* info, const std::string& name)
|
||||
{
|
||||
|
|
@ -22,3 +23,4 @@ void DetectInstantMouseControllers(hid_device_info* info, const std::string& nam
|
|||
|
||||
REGISTER_HID_DETECTOR_IPU("Advanced GTA 250 USB Gaming Mouse", DetectInstantMouseControllers, INSTANT_MICROELECTRONICS_VID, ADVANCED_GTA_250_PID, 1, 0xFF01, 0x01);
|
||||
REGISTER_HID_DETECTOR_IPU("Anko KM43243952 USB Gaming Mouse", DetectInstantMouseControllers, INSTANT_MICROELECTRONICS_VID, ANKO_KM43243952_VID, 1, 0xFF01, 0x01);
|
||||
REGISTER_HID_DETECTOR_IPU("Anko KM43277483 USB Gaming Mouse", DetectInstantMouseControllers, INSTANT_MICROELECTRONICS_VID, ANKO_KM43277483_VID, 1, 0xFF01, 0x01);
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
@detectors DetectInstantMouseControllers
|
||||
@comment This controller should work with all mouse with this chip.
|
||||
Identified devices that work with this controller: Advance Gaming
|
||||
GTA 250 (GX72-A725), Anko KM43243952 (GM8-A825)
|
||||
GTA 250 (GX72-A725), Anko KM43243952 (GM8-A825), Anko KM43277483
|
||||
\*-------------------------------------------------------------------*/
|
||||
|
||||
RGBController_InstantMouse::RGBController_InstantMouse(InstantMouseController* controller_ptr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue