aboutsummaryrefslogtreecommitdiffstats
path: root/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'devices.c')
-rw-r--r--devices.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/devices.c b/devices.c
index 6fbde73..0ea2d78 100644
--- a/devices.c
+++ b/devices.c
@@ -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,