diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2010-03-09 13:25:00 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-03-19 15:27:38 -0500 |
commit | 7e581fb3b126691a4358fcc7057b234dcb9ea3ad (patch) | |
tree | b70a9572c5f506edbb4c73b95526b10d62b5e586 /console.h | |
parent | eb2e259d95a67ef0cd8a61c0bd4974559e9bfa5d (diff) | |
download | hqemu-7e581fb3b126691a4358fcc7057b234dcb9ea3ad.zip hqemu-7e581fb3b126691a4358fcc7057b234dcb9ea3ad.tar.gz |
Add notifier for mouse mode changes
Right now, DisplayState clients rely on polling the mouse mode to determine
when the device is changed to an absolute device. Use a notification list to
add an explicit notification.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'console.h')
-rw-r--r-- | console.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3,6 +3,7 @@ #include "qemu-char.h" #include "qdict.h" +#include "notify.h" /* keyboard/mouse support */ @@ -56,6 +57,8 @@ 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); +void qemu_add_mouse_mode_change_notifier(Notifier *notify); +void qemu_remove_mouse_mode_change_notifier(Notifier *notify); /* Of all the mice, is there one that generates absolute events */ int kbd_mouse_has_absolute(void); |