Compare commits
6 Commits
qemu-2.0.0
...
pull-sdl-1
Author | SHA1 | Date | |
---|---|---|---|
|
2d968ffbae | ||
|
afbc0dd649 | ||
|
f516a5cc05 | ||
|
0a9077ea14 | ||
|
775478418a | ||
|
50329d3418 |
2
configure
vendored
2
configure
vendored
@@ -1448,7 +1448,7 @@ done
|
|||||||
if test "$stack_protector" != "no" ; then
|
if test "$stack_protector" != "no" ; then
|
||||||
gcc_flags="-fstack-protector-strong -fstack-protector-all"
|
gcc_flags="-fstack-protector-strong -fstack-protector-all"
|
||||||
for flag in $gcc_flags; do
|
for flag in $gcc_flags; do
|
||||||
if compile_prog "-Werror $flag" "" ; then
|
if do_cc $QEMU_CFLAGS -Werror $flag -c -o $TMPO $TMPC ; then
|
||||||
QEMU_CFLAGS="$QEMU_CFLAGS $flag"
|
QEMU_CFLAGS="$QEMU_CFLAGS $flag"
|
||||||
LIBTOOLFLAGS="$LIBTOOLFLAGS -Wc,$flag"
|
LIBTOOLFLAGS="$LIBTOOLFLAGS -Wc,$flag"
|
||||||
break
|
break
|
||||||
|
@@ -3,12 +3,12 @@ static unsigned char AcpiDsdtAmlCode[] = {
|
|||||||
0x53,
|
0x53,
|
||||||
0x44,
|
0x44,
|
||||||
0x54,
|
0x54,
|
||||||
0x85,
|
0x80,
|
||||||
0x11,
|
0x11,
|
||||||
0x0,
|
0x0,
|
||||||
0x0,
|
0x0,
|
||||||
0x1,
|
0x1,
|
||||||
0x8b,
|
0x60,
|
||||||
0x42,
|
0x42,
|
||||||
0x58,
|
0x58,
|
||||||
0x50,
|
0x50,
|
||||||
@@ -31,8 +31,8 @@ static unsigned char AcpiDsdtAmlCode[] = {
|
|||||||
0x4e,
|
0x4e,
|
||||||
0x54,
|
0x54,
|
||||||
0x4c,
|
0x4c,
|
||||||
0x23,
|
0x15,
|
||||||
0x8,
|
0x11,
|
||||||
0x13,
|
0x13,
|
||||||
0x20,
|
0x20,
|
||||||
0x10,
|
0x10,
|
||||||
@@ -4010,7 +4010,7 @@ static unsigned char AcpiDsdtAmlCode[] = {
|
|||||||
0x53,
|
0x53,
|
||||||
0x1,
|
0x1,
|
||||||
0x10,
|
0x10,
|
||||||
0x47,
|
0x42,
|
||||||
0x11,
|
0x11,
|
||||||
0x5f,
|
0x5f,
|
||||||
0x53,
|
0x53,
|
||||||
@@ -4243,7 +4243,7 @@ static unsigned char AcpiDsdtAmlCode[] = {
|
|||||||
0x60,
|
0x60,
|
||||||
0x5b,
|
0x5b,
|
||||||
0x82,
|
0x82,
|
||||||
0x2e,
|
0x29,
|
||||||
0x50,
|
0x50,
|
||||||
0x52,
|
0x52,
|
||||||
0x45,
|
0x45,
|
||||||
@@ -4253,16 +4253,11 @@ static unsigned char AcpiDsdtAmlCode[] = {
|
|||||||
0x48,
|
0x48,
|
||||||
0x49,
|
0x49,
|
||||||
0x44,
|
0x44,
|
||||||
0xd,
|
0xc,
|
||||||
0x41,
|
0x41,
|
||||||
0x43,
|
0xd0,
|
||||||
0x50,
|
0xa,
|
||||||
0x49,
|
0x6,
|
||||||
0x30,
|
|
||||||
0x30,
|
|
||||||
0x30,
|
|
||||||
0x34,
|
|
||||||
0x0,
|
|
||||||
0x8,
|
0x8,
|
||||||
0x5f,
|
0x5f,
|
||||||
0x43,
|
0x43,
|
||||||
|
@@ -3,12 +3,12 @@ static unsigned char Q35AcpiDsdtAmlCode[] = {
|
|||||||
0x53,
|
0x53,
|
||||||
0x44,
|
0x44,
|
||||||
0x54,
|
0x54,
|
||||||
0xd7,
|
0xd2,
|
||||||
0x1c,
|
0x1c,
|
||||||
0x0,
|
0x0,
|
||||||
0x0,
|
0x0,
|
||||||
0x1,
|
0x1,
|
||||||
0x3e,
|
0x13,
|
||||||
0x42,
|
0x42,
|
||||||
0x58,
|
0x58,
|
||||||
0x50,
|
0x50,
|
||||||
@@ -31,8 +31,8 @@ static unsigned char Q35AcpiDsdtAmlCode[] = {
|
|||||||
0x4e,
|
0x4e,
|
||||||
0x54,
|
0x54,
|
||||||
0x4c,
|
0x4c,
|
||||||
0x23,
|
0x15,
|
||||||
0x8,
|
0x11,
|
||||||
0x13,
|
0x13,
|
||||||
0x20,
|
0x20,
|
||||||
0x10,
|
0x10,
|
||||||
@@ -6959,7 +6959,7 @@ static unsigned char Q35AcpiDsdtAmlCode[] = {
|
|||||||
0x53,
|
0x53,
|
||||||
0x1,
|
0x1,
|
||||||
0x10,
|
0x10,
|
||||||
0x47,
|
0x42,
|
||||||
0x11,
|
0x11,
|
||||||
0x5f,
|
0x5f,
|
||||||
0x53,
|
0x53,
|
||||||
@@ -7192,7 +7192,7 @@ static unsigned char Q35AcpiDsdtAmlCode[] = {
|
|||||||
0x60,
|
0x60,
|
||||||
0x5b,
|
0x5b,
|
||||||
0x82,
|
0x82,
|
||||||
0x2e,
|
0x29,
|
||||||
0x50,
|
0x50,
|
||||||
0x52,
|
0x52,
|
||||||
0x45,
|
0x45,
|
||||||
@@ -7202,16 +7202,11 @@ static unsigned char Q35AcpiDsdtAmlCode[] = {
|
|||||||
0x48,
|
0x48,
|
||||||
0x49,
|
0x49,
|
||||||
0x44,
|
0x44,
|
||||||
0xd,
|
0xc,
|
||||||
0x41,
|
0x41,
|
||||||
0x43,
|
0xd0,
|
||||||
0x50,
|
0xa,
|
||||||
0x49,
|
0x6,
|
||||||
0x30,
|
|
||||||
0x30,
|
|
||||||
0x30,
|
|
||||||
0x34,
|
|
||||||
0x0,
|
|
||||||
0x8,
|
0x8,
|
||||||
0x5f,
|
0x5f,
|
||||||
0x43,
|
0x43,
|
||||||
|
Binary file not shown.
Binary file not shown.
21
ui/sdl2.c
21
ui/sdl2.c
@@ -278,7 +278,7 @@ static void sdl_hide_cursor(void)
|
|||||||
SDL_ShowCursor(1);
|
SDL_ShowCursor(1);
|
||||||
SDL_SetCursor(sdl_cursor_hidden);
|
SDL_SetCursor(sdl_cursor_hidden);
|
||||||
} else {
|
} else {
|
||||||
SDL_ShowCursor(0);
|
SDL_SetRelativeMouseMode(SDL_TRUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -289,6 +289,7 @@ static void sdl_show_cursor(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!qemu_input_is_absolute()) {
|
if (!qemu_input_is_absolute()) {
|
||||||
|
SDL_SetRelativeMouseMode(SDL_FALSE);
|
||||||
SDL_ShowCursor(1);
|
SDL_ShowCursor(1);
|
||||||
if (guest_cursor &&
|
if (guest_cursor &&
|
||||||
(gui_grab || qemu_input_is_absolute() || absolute_enabled)) {
|
(gui_grab || qemu_input_is_absolute() || absolute_enabled)) {
|
||||||
@@ -403,13 +404,17 @@ static void sdl_send_mouse_event(struct sdl2_state *scon, int dx, int dy,
|
|||||||
}
|
}
|
||||||
qemu_input_queue_abs(scon->dcl.con, INPUT_AXIS_X, off_x + x, max_w);
|
qemu_input_queue_abs(scon->dcl.con, INPUT_AXIS_X, off_x + x, max_w);
|
||||||
qemu_input_queue_abs(scon->dcl.con, INPUT_AXIS_Y, off_y + y, max_h);
|
qemu_input_queue_abs(scon->dcl.con, INPUT_AXIS_Y, off_y + y, max_h);
|
||||||
} else if (guest_cursor) {
|
} else {
|
||||||
x -= guest_x;
|
if (guest_cursor) {
|
||||||
y -= guest_y;
|
x -= guest_x;
|
||||||
guest_x += x;
|
y -= guest_y;
|
||||||
guest_y += y;
|
guest_x += x;
|
||||||
qemu_input_queue_rel(scon->dcl.con, INPUT_AXIS_X, x);
|
guest_y += y;
|
||||||
qemu_input_queue_rel(scon->dcl.con, INPUT_AXIS_Y, y);
|
dx = x;
|
||||||
|
dy = y;
|
||||||
|
}
|
||||||
|
qemu_input_queue_rel(scon->dcl.con, INPUT_AXIS_X, dx);
|
||||||
|
qemu_input_queue_rel(scon->dcl.con, INPUT_AXIS_Y, dy);
|
||||||
}
|
}
|
||||||
qemu_input_event_sync();
|
qemu_input_event_sync();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user