mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
adb: add to input category
The Apple Desktop Bus is used to connect a keyboard and a mouse, so add it to the input category. Signed-off-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
90da0d5a70
commit
32f3a8992e
@ -362,6 +362,7 @@ static void adb_kbd_class_init(ObjectClass *oc, void *data)
|
||||
|
||||
akc->parent_realize = dc->realize;
|
||||
dc->realize = adb_kbd_realizefn;
|
||||
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
|
||||
|
||||
adc->devreq = adb_kbd_request;
|
||||
dc->reset = adb_kbd_reset;
|
||||
@ -566,6 +567,7 @@ static void adb_mouse_class_init(ObjectClass *oc, void *data)
|
||||
|
||||
amc->parent_realize = dc->realize;
|
||||
dc->realize = adb_mouse_realizefn;
|
||||
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
|
||||
|
||||
adc->devreq = adb_mouse_request;
|
||||
dc->reset = adb_mouse_reset;
|
||||
|
Loading…
Reference in New Issue
Block a user