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.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/hw/usb/hid-logitech-dj.c b/hw/usb/hid-logitech-dj.c
index d10e58d1bb..58d4aecc59 100644
--- a/hw/usb/hid-logitech-dj.c
+++ b/hw/usb/hid-logitech-dj.c
@@ -309,6 +309,14 @@ static void hidpp_process_receiver_report(USBLtunifyState *s, HidppMsg *msg)
hidpp_queue_error(s, msg, HIDPP_ERR_INVALID_VALUE);
}
break;
+ case SET_REG(0xF0): /* Enter DFU mode?? */
+ // 4c 54 02: "LT" + device index?
+ // (followed by read f0)
+ // 58 49 54: "XIT"
+ // (followed by GET_LONG_REG(0xB3)(0, 0, 0))
+ break;
+ case GET_REG(0xF0): /* Get DFU information? */
+ break;
case GET_REG(0xF1):
hidpp_process_version_request(s, ms, &rcvr->info.version);
break;
@@ -587,7 +595,7 @@ static void hidpp_init_device(USBLtunifyState *s, int device_index, int devtype)
/* hd->info.device_name N/A for HID++ 1.0 */
hd->report_interval = 20;
break;
- case DEVTYPE_MOUSE:
+ //case DEVTYPE_MOUSE:
hd->info.version = (struct firmware_version) { 0x27, 0x02, 0x28, 0, 0 };
hd->hid = &s->hid[IFACE_MSE];
hd->info.report_types = 4; /* HID Collection: Mouse */
@@ -600,6 +608,7 @@ static void hidpp_init_device(USBLtunifyState *s, int device_index, int devtype)
hd->battery.level = 2; /* Full - 90 % */
hd->battery.critical_perc = 2;
break;
+ case DEVTYPE_MOUSE:
case DEVTYPE_TOUCHPAD:
/* TODO: perhaps "unpair" mouse and use this touchpad instead? */
hd->hid = &s->hid[IFACE_MSE];