mirror of
https://github.com/qemu/qemu.git
synced 2024-11-30 07:13:38 +08:00
input-legacy: remove kbd_mouse_is_absolute
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
16b0ecd168
commit
2d0755d21c
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user