summaryrefslogtreecommitdiff
path: root/hw/usb/hid-logitech-dj.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/usb/hid-logitech-dj.c')
-rw-r--r--hw/usb/hid-logitech-dj.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/hw/usb/hid-logitech-dj.c b/hw/usb/hid-logitech-dj.c
index 7afd3d8194..403d994457 100644
--- a/hw/usb/hid-logitech-dj.c
+++ b/hw/usb/hid-logitech-dj.c
@@ -610,6 +610,21 @@ static void hidpp_init_device(USBLtunifyState *s, int device_index, uint16_t pid
hd->battery.level = 2; /* Full - 90 % */
hd->battery.critical_perc = 2;
break;
+ case WPID_T400:
+ hd->info.device_type = DEVTYPE_MOUSE;
+ hd->info.version = (struct firmware_version) { 0x39, 0x00, 0x29, 3, 0 };
+ // Other versions: (2) HW 01.00; (3) TP 04.00
+ hd->hid = &s->hid[IFACE_MSE];
+ hd->info.report_types = 0x0e; /* Keyboard, Mouse, Consumer Ctrl */
+ hd->info.serial = 0x4f6f7073;
+ memcpy(hd->info.name, "T400", 4);
+ hd->info.device_name = "Zone Touch Mouse T400";
+ hd->report_interval = 8;
+ hd->battery.nlevels = 4;
+ hd->battery.level = 3; /* Good - 50 % */
+ hd->battery.flags = BAT_FLAG_RECHARGEABLE;
+ hd->battery.critical_perc = 10;
+ break;
case WPID_T650:
hd->info.device_type = DEVTYPE_TOUCHPAD;
hd->info.version = (struct firmware_version) { 0x41, 0x01, 0x37, 3, 0 };