[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 28/38] input-legacy: remove kbd_mouse_has_absolute
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 28/38] input-legacy: remove kbd_mouse_has_absolute |
Date: |
Fri, 28 Feb 2014 15:06:39 +0100 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
include/ui/console.h | 3 ---
ui/input-legacy.c | 21 ++-------------------
2 files changed, 2 insertions(+), 22 deletions(-)
diff --git a/include/ui/console.h b/include/ui/console.h
index c7f4e4f..53e956d 100644
--- a/include/ui/console.h
+++ b/include/ui/console.h
@@ -54,9 +54,6 @@ 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);
-
struct MouseTransformInfo {
/* Touchscreen resolution */
int x;
diff --git a/ui/input-legacy.c b/ui/input-legacy.c
index 3ac30e2..22796fa 100644
--- a/ui/input-legacy.c
+++ b/ui/input-legacy.c
@@ -366,20 +366,16 @@ void qemu_remove_kbd_event_handler(QEMUPutKbdEntry *entry)
static void check_mode_change(void)
{
- static int current_is_absolute, current_has_absolute;
+ static int current_is_absolute;
int is_absolute;
- int has_absolute;
is_absolute = kbd_mouse_is_absolute();
- has_absolute = kbd_mouse_has_absolute();
- if (is_absolute != current_is_absolute ||
- has_absolute != current_has_absolute) {
+ if (is_absolute != current_is_absolute) {
notifier_list_notify(&mouse_mode_notifiers, NULL);
}
current_is_absolute = is_absolute;
- current_has_absolute = has_absolute;
}
static void legacy_mouse_event(DeviceState *dev, QemuConsole *src,
@@ -567,19 +563,6 @@ int kbd_mouse_is_absolute(void)
return QTAILQ_FIRST(&mouse_handlers)->qemu_put_mouse_event_absolute;
}
-int kbd_mouse_has_absolute(void)
-{
- QEMUPutMouseEntry *entry;
-
- QTAILQ_FOREACH(entry, &mouse_handlers, node) {
- if (entry->qemu_put_mouse_event_absolute) {
- return 1;
- }
- }
-
- return 0;
-}
-
MouseInfoList *qmp_query_mice(Error **errp)
{
MouseInfoList *mice_list = NULL;
--
1.8.3.1
- [Qemu-devel] [PULL 27/38] input-legacy: remove kbd_put_keycode, (continued)
- [Qemu-devel] [PULL 27/38] input-legacy: remove kbd_put_keycode, Gerd Hoffmann, 2014/02/28
- [Qemu-devel] [PULL 21/38] input: mouse: switch vnc ui to new core, Gerd Hoffmann, 2014/02/28
- [Qemu-devel] [PULL 31/38] input: move mouse mode notifier to new core, Gerd Hoffmann, 2014/02/28
- [Qemu-devel] [PULL 29/38] input-legacy: remove kbd_mouse_is_absolute, Gerd Hoffmann, 2014/02/28
- [Qemu-devel] [PULL 26/38] input: trace events, Gerd Hoffmann, 2014/02/28
- [Qemu-devel] [PULL 30/38] input-legacy: remove kbd_mouse_event, Gerd Hoffmann, 2014/02/28
- [Qemu-devel] [PULL 33/38] input: move qmp_query_mice to new core, Gerd Hoffmann, 2014/02/28
- [Qemu-devel] [PULL 35/38] input: remove index_from_keycode (no users), Gerd Hoffmann, 2014/02/28
- [Qemu-devel] [PULL 34/38] input: move do_mouse_set to new core, Gerd Hoffmann, 2014/02/28
- [Qemu-devel] [PULL 24/38] input: keyboard: switch cocoa ui to new core, Gerd Hoffmann, 2014/02/28
- [Qemu-devel] [PULL 28/38] input-legacy: remove kbd_mouse_has_absolute,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 25/38] input: mouse: switch cocoa ui to new core, Gerd Hoffmann, 2014/02/28
- [Qemu-devel] [PULL 32/38] input: add input_mouse_mode tracepoint, Gerd Hoffmann, 2014/02/28
- [Qemu-devel] [PULL 38/38] ui/sdl2 : initial port to SDL 2.0 (v2.0), Gerd Hoffmann, 2014/02/28
- [Qemu-devel] [PULL 37/38] console: add QemuUIInfo, Gerd Hoffmann, 2014/02/28
- [Qemu-devel] [PULL 36/38] console: add head to index to qemu consoles., Gerd Hoffmann, 2014/02/28
- [Qemu-devel] [PULL 02/38] input: rename file to legacy, Gerd Hoffmann, 2014/02/28
- [Qemu-devel] [PULL 06/38] input: add core bits of the new input layer, Gerd Hoffmann, 2014/02/28
- [Qemu-devel] [PULL 17/38] input: mouse: add qemu_input_is_absolute(), Gerd Hoffmann, 2014/02/28
- [Qemu-devel] [PULL 20/38] input: mouse: switch sdl ui to new core, Gerd Hoffmann, 2014/02/28
- [Qemu-devel] [PULL 22/38] input: mouse: switch spice ui to new core, Gerd Hoffmann, 2014/02/28