[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 34/44] input-legacy: remove kbd_mouse_is_absolute
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 34/44] input-legacy: remove kbd_mouse_is_absolute |
Date: |
Mon, 24 Feb 2014 12:52:41 +0100 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
include/ui/console.h | 1 -
ui/input-legacy.c | 11 +----------
2 files changed, 1 insertion(+), 11 deletions(-)
diff --git a/include/ui/console.h b/include/ui/console.h
index 53e956d..21b32e4 100644
--- a/include/ui/console.h
+++ b/include/ui/console.h
@@ -50,7 +50,6 @@ 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);
void qemu_add_mouse_mode_change_notifier(Notifier *notify);
void qemu_remove_mouse_mode_change_notifier(Notifier *notify);
diff --git a/ui/input-legacy.c b/ui/input-legacy.c
index 22796fa..412d401 100644
--- a/ui/input-legacy.c
+++ b/ui/input-legacy.c
@@ -369,7 +369,7 @@ static void check_mode_change(void)
static int current_is_absolute;
int is_absolute;
- is_absolute = kbd_mouse_is_absolute();
+ is_absolute = qemu_input_is_absolute();
if (is_absolute != current_is_absolute) {
notifier_list_notify(&mouse_mode_notifiers, NULL);
@@ -554,15 +554,6 @@ void kbd_mouse_event(int dx, int dy, int dz, int
buttons_state)
}
}
-int kbd_mouse_is_absolute(void)
-{
- if (QTAILQ_EMPTY(&mouse_handlers)) {
- return 0;
- }
-
- return QTAILQ_FIRST(&mouse_handlers)->qemu_put_mouse_event_absolute;
-}
-
MouseInfoList *qmp_query_mice(Error **errp)
{
MouseInfoList *mice_list = NULL;
--
1.8.3.1
- [Qemu-devel] [PULL v2 00/44] rework input handling, sdl2 support, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 02/44] sdl2: baum build fix, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 04/44] console: export QemuConsole index, width, height, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 10/44] input: keyboard: add helper functions to core, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 14/44] input: keyboard: switch sdl ui to new core, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 33/44] input-legacy: remove kbd_mouse_has_absolute, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 08/44] input: qapi: add pause key, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 11/44] input: keyboard: switch legacy handlers to new core, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 34/44] input-legacy: remove kbd_mouse_is_absolute,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 18/44] input: keyboard: switch curses ui to new core, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 27/44] input: mouse: switch spice ui to new core, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 35/44] input-legacy: remove kbd_mouse_event, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 42/44] input: remove index_from_keycode (no users), Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 24/44] input: mouse: switch sdl ui to new core, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 26/44] input: mouse: switch vnc ui to new core, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 32/44] input-legacy: remove kbd_put_keycode, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 30/44] input: mouse: switch cocoa ui to new core, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 09/44] input: add core bits of the new input layer, Gerd Hoffmann, 2014/02/24