diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2014-05-19 15:18:37 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-05-26 08:42:43 +0200 |
commit | 6f5943cf45b89b70c228dc51d83e0f861a478ead (patch) | |
tree | d64671b6fc377a9021c99f1262b843cd923b6c9e /include | |
parent | 8b84286f4cd0ff5dbf367dc55cf20d9762ac5634 (diff) |
input: bind devices and input routing
Add function to bind input devices to display devices. Implementing
input routing on top of this: Events coming from the display device in
question are routed to the input device bound to it (if there is one).
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/ui/input.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ui/input.h b/include/ui/input.h index d84ed8b41c..aa99b0cac7 100644 --- a/include/ui/input.h +++ b/include/ui/input.h @@ -29,6 +29,9 @@ QemuInputHandlerState *qemu_input_handler_register(DeviceState *dev, void qemu_input_handler_activate(QemuInputHandlerState *s); void qemu_input_handler_deactivate(QemuInputHandlerState *s); void qemu_input_handler_unregister(QemuInputHandlerState *s); +void qemu_input_handler_bind(QemuInputHandlerState *s, + const char *device_id, int head, + Error **errp); void qemu_input_event_send(QemuConsole *src, InputEvent *evt); void qemu_input_event_sync(void); |