Skip to content

Commit

Permalink
support for katar pro xt
Browse files Browse the repository at this point in the history
  • Loading branch information
jurkovic-nikola committed Jan 12, 2025
1 parent b37e6f4 commit 7108bb5
Show file tree
Hide file tree
Showing 8 changed files with 1,923 additions and 107 deletions.
3 changes: 2 additions & 1 deletion 99-openlinkhub.rules
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,5 @@ SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b1c", ATTRS{idProduct}=="1b9e", MODE="0660
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b1c", ATTRS{idProduct}=="1b75", MODE="0660", OWNER="openlinkhub"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b1c", ATTRS{idProduct}=="1b5e", MODE="0660", OWNER="openlinkhub"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b1c", ATTRS{idProduct}=="0a62", MODE="0660", OWNER="openlinkhub"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b1c", ATTRS{idProduct}=="0a64", MODE="0660", OWNER="openlinkhub"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b1c", ATTRS{idProduct}=="0a64", MODE="0660", OWNER="openlinkhub"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b1c", ATTRS{idProduct}=="1bac", MODE="0660", OWNER="openlinkhub"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Open source Linux interface for iCUE LINK Hub and other Corsair AIOs, Hubs.
| K100 AIR RGB | `1b1c` | `1bab` | USB |
| K100 | `1b1c` | `1bc5`<br />`1b7c`<br />`1b7d` | USB |
| KATAR PRO | `1b1c` | `1b93` | DPI Control<br />RGB Control |
| KATAR PRO XT | `1b1c` | `1bac` | DPI Control<br />RGB Control |
| KATAR PRO WIRELESS | `1b1c` | `1b94` | DPI Control |
| IRONCLAW RGB | `1b1c` | `1b5d` | DPI Control<br />RGB Control |
| IRONCLAW RGB WIRELESS | `1b1c` | `1b4c` | DPI Control<br />RGB Control |
Expand Down
21 changes: 20 additions & 1 deletion src/devices/devices.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"OpenLinkHub/src/devices/k70pro"
"OpenLinkHub/src/devices/katarpro"
"OpenLinkHub/src/devices/katarproW"
"OpenLinkHub/src/devices/katarproxt"
"OpenLinkHub/src/devices/lncore"
"OpenLinkHub/src/devices/lnpro"
"OpenLinkHub/src/devices/lsh"
Expand Down Expand Up @@ -106,6 +107,7 @@ const (
productTypeHarpoonRgbPro = 222
productTypeHarpoonRgbW = 223
productTypeHarpoonRgbWU = 224
productTypeKatarProXT = 225
productTypeVirtuosoXTW = 300
productTypeVirtuosoXTWU = 301
productTypeST100 = 401
Expand Down Expand Up @@ -143,7 +145,7 @@ var (
devices = make(map[string]*Device, 0)
products = make(map[string]Product, 0)
keyboards = []uint16{7127, 7165, 7166, 7110, 7083, 11024, 11015, 7109, 7091, 7036, 7037}
mouses = []uint16{7059, 7005, 6988, 7096, 7139, 7131, 11011, 7024, 7038, 7040, 7152, 7154, 7070, 7029, 7006}
mouses = []uint16{7059, 7005, 6988, 7096, 7139, 7131, 11011, 7024, 7038, 7040, 7152, 7154, 7070, 7029, 7006, 7084}
pads = []uint16{7067}
headsets = []uint16{2658, 2660}
dongles = []uint16{7132, 7078, 11008, 7060}
Expand Down Expand Up @@ -1820,6 +1822,23 @@ func Init() {
}
}(vendorId, productId, key)
}
case 7084: // Corsair KATAR PRO XT Gaming Mouse
{
go func(vendorId, productId uint16, key string) {
dev := katarproxt.Init(vendorId, productId, key)
if dev == nil {
return
}
devices[dev.Serial] = &Device{
ProductType: productTypeKatarProXT,
Product: dev.Product,
Serial: dev.Serial,
Firmware: dev.Firmware,
Image: "icon-mouse.svg",
Instance: dev,
}
}(vendorId, productId, key)
}
case 7005: // Corsair IRONCLAW RGB Gaming Mouse
{
go func(vendorId, productId uint16, key string) {
Expand Down
Loading

0 comments on commit 7108bb5

Please sign in to comment.