summaryrefslogtreecommitdiffstats
path: root/include/ui/input.h
diff options
context:
space:
mode:
authorPeter Maydell2014-05-28 11:33:05 +0200
committerPeter Maydell2014-05-28 11:33:05 +0200
commit4aa23452e366790e6c50dea73c8bc5eea44e2f38 (patch)
tree7da474230a9909a6f79d3d05f4cdce3532e41051 /include/ui/input.h
parentMerge remote-tracking branch 'remotes/mjt/tags/trivial-patches-2014-05-26' in... (diff)
parentdocs: add multiseat.txt (diff)
downloadqemu-4aa23452e366790e6c50dea73c8bc5eea44e2f38.tar.gz
qemu-4aa23452e366790e6c50dea73c8bc5eea44e2f38.tar.xz
qemu-4aa23452e366790e6c50dea73c8bc5eea44e2f38.zip
Merge remote-tracking branch 'remotes/kraxel/tags/pull-input-9' into staging
input: add event routing and multiseat support. input: misc bugfixes and minor improvements. # gpg: Signature made Mon 26 May 2014 07:44:29 BST using RSA key ID D3E87138 # gpg: Can't check signature: public key not found * remotes/kraxel/tags/pull-input-9: docs: add multiseat.txt usb: add input routing support for tablet and keyboard sdl: pass key event source to input layer input: bind devices and input routing input: switch hid mouse and tablet to the new input layer api. input: switch hid keyboard to new input layer api. input: keymap: add meta keys input: add name to input_event_key_number input: add qemu_input_key_number_to_qcode input (curses): mask keycodes to remove modifier bits Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/ui/input.h')
-rw-r--r--include/ui/input.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ui/input.h b/include/ui/input.h
index 3d3d487f18..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);
@@ -36,6 +39,7 @@ InputEvent *qemu_input_event_new_key(KeyValue *key, bool down);
void qemu_input_event_send_key(QemuConsole *src, KeyValue *key, bool down);
void qemu_input_event_send_key_number(QemuConsole *src, int num, bool down);
void qemu_input_event_send_key_qcode(QemuConsole *src, QKeyCode q, bool down);
+int qemu_input_key_number_to_qcode(uint8_t nr);
int qemu_input_key_value_to_number(const KeyValue *value);
int qemu_input_key_value_to_qcode(const KeyValue *value);
int qemu_input_key_value_to_scancode(const KeyValue *value, bool down,