diff options
Diffstat (limited to 'devices.c')
-rw-r--r-- | devices.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -323,6 +323,8 @@ void devices_parse_info_usb(struct qemu_window *win, char *str) if (debug) fprintf(stderr, "%s: %s - %s - %s\n", __FUNCTION__, device, speed, name); + if (0 == strcmp(device, "0.0")) + continue; snprintf(label, sizeof(label), "%s (%s)", name, device); add_entry(win, win->usb.ag, menu_cb_unplug_usb, &i_xml, &i_pos, @@ -390,6 +392,12 @@ void devices_parse_info_usbhost(struct qemu_window *win, char *str) /* static */ add_entry(win, win->usbhost.ag, menu_cb_plug_usb, &i_xml, &i_pos, "QEMU USB Tablet (virtual)", "PlugUsb", "tablet"); + add_entry(win, win->usbhost.ag, menu_cb_plug_usb, &i_xml, &i_pos, + "QEMU USB Mouse (virtual)", "PlugUsb", "mouse"); + add_entry(win, win->usbhost.ag, menu_cb_plug_usb, &i_xml, &i_pos, + "QEMU USB Keyboard (virtual)", "PlugUsb", "keyboard"); + add_entry(win, win->usbhost.ag, menu_cb_plug_usb, &i_xml, &i_pos, + "QEMU USB Bluetooth (virtual)", "PlugUsb", "bt"); xml = malloc(i_pos + strlen(plug_usb_xml)); sprintf(xml, plug_usb_xml, |