mirror of
https://github.com/mii443/qemu.git
synced 2025-08-31 11:29:26 +00:00
ui: Support non-zero minimum values for absolute input axes
This patch refactors ui/input.c to support absolute axis minimum values other than 0. All dependent calls to qemu_input_queue_abs have been updated to explicitly supply 0 as the axis minimum value. Signed-off-by: Philippe Voinov <philippevoinov@gmail.com> Message-id: 20170505133952.29885-1-philippevoinov@gmail.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
committed by
Gerd Hoffmann
parent
76d20ea0f1
commit
9cfa7ab939
4
ui/sdl.c
4
ui/sdl.c
@ -490,9 +490,9 @@ static void sdl_send_mouse_event(int dx, int dy, int x, int y, int state)
|
||||
|
||||
if (qemu_input_is_absolute()) {
|
||||
qemu_input_queue_abs(dcl->con, INPUT_AXIS_X, x,
|
||||
real_screen->w);
|
||||
0, real_screen->w);
|
||||
qemu_input_queue_abs(dcl->con, INPUT_AXIS_Y, y,
|
||||
real_screen->h);
|
||||
0, real_screen->h);
|
||||
} else {
|
||||
if (guest_cursor) {
|
||||
x -= guest_x;
|
||||
|
Reference in New Issue
Block a user