mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:10 +00:00
ui/input: Have qemu_input_is_absolute() take a const QemuConsole
qemu_input_is_absolute() does not update the content of the QemuConsole structure. Make the argument const. Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <20260611114212.27472-3-philmd@oss.qualcomm.com>
This commit is contained in:
committed by
Marc-André Lureau
parent
e43e937288
commit
ebaa76fdcb
@@ -73,7 +73,7 @@ void qemu_input_queue_btn(QemuConsole *src, InputButton btn, bool down);
|
||||
void qemu_input_update_buttons(QemuConsole *src, uint32_t *button_map,
|
||||
uint32_t button_old, uint32_t button_new);
|
||||
|
||||
bool qemu_input_is_absolute(QemuConsole *con);
|
||||
bool qemu_input_is_absolute(const QemuConsole *con);
|
||||
int qemu_input_scale_axis(int value,
|
||||
int min_in, int max_in,
|
||||
int min_out, int max_out);
|
||||
|
||||
@@ -160,7 +160,7 @@ void qemu_input_event_sync(void)
|
||||
}
|
||||
}
|
||||
|
||||
bool qemu_input_is_absolute(QemuConsole *con)
|
||||
bool qemu_input_is_absolute(const QemuConsole *con)
|
||||
{
|
||||
QemuDBusDisplay1Mouse *mouse;
|
||||
|
||||
|
||||
@@ -466,7 +466,7 @@ void qemu_input_update_buttons(QemuConsole *src, uint32_t *button_map,
|
||||
}
|
||||
}
|
||||
|
||||
bool qemu_input_is_absolute(QemuConsole *con)
|
||||
bool qemu_input_is_absolute(const QemuConsole *con)
|
||||
{
|
||||
QemuInputHandlerState *s;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user