path: root/console.h
diff options
authorAnthony Liguori <aliguori@us.ibm.com>2010-03-09 14:26:40 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2010-03-19 15:27:38 -0500
commiteb2e259d95a67ef0cd8a61c0bd4974559e9bfa5d (patch)
tree7fdf802c2a6078812dcf0146f32db700ec55b490 /console.h
parent6fef28ee6e5e0a443857e67aa026d49b6bbdc1b6 (diff)
Add kbd_mouse_has_absolute()
kbd_mouse_is_absolute tells us whether the current mouse handler is an absolute device. kbd_mouse_has_absolute tells us whether we have any device that is capable of absolute input. This lets us tell a user that they have configured an absolute device but that the guest is not currently using it. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'console.h')
1 files changed, 5 insertions, 0 deletions
diff --git a/console.h b/console.h
index 94d9caea1..f3c619f0f 100644
--- a/console.h
+++ b/console.h
@@ -53,8 +53,13 @@ void qemu_remove_led_event_handler(QEMUPutLEDEntry *entry);
void kbd_put_keycode(int keycode);
void kbd_put_ledstate(int ledstate);
void kbd_mouse_event(int dx, int dy, int dz, int buttons_state);
+/* Does the current mouse generate absolute events */
int kbd_mouse_is_absolute(void);
+/* Of all the mice, is there one that generates absolute events */
+int kbd_mouse_has_absolute(void);
struct MouseTransformInfo {
/* Touchscreen resolution */
int x;