mirror of https://github.com/xemu-project/xemu.git
-show-cursor switch to inhibit SDL hiding cursor.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2763 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
a90b7318ba
commit
9467cd4602
6
sdl.c
6
sdl.c
|
@ -236,6 +236,9 @@ static void sdl_update_caption(void)
|
||||||
|
|
||||||
static void sdl_hide_cursor(void)
|
static void sdl_hide_cursor(void)
|
||||||
{
|
{
|
||||||
|
if (!cursor_hide)
|
||||||
|
return;
|
||||||
|
|
||||||
if (kbd_mouse_is_absolute()) {
|
if (kbd_mouse_is_absolute()) {
|
||||||
SDL_ShowCursor(1);
|
SDL_ShowCursor(1);
|
||||||
SDL_SetCursor(sdl_cursor_hidden);
|
SDL_SetCursor(sdl_cursor_hidden);
|
||||||
|
@ -246,6 +249,9 @@ static void sdl_hide_cursor(void)
|
||||||
|
|
||||||
static void sdl_show_cursor(void)
|
static void sdl_show_cursor(void)
|
||||||
{
|
{
|
||||||
|
if (!cursor_hide)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!kbd_mouse_is_absolute()) {
|
if (!kbd_mouse_is_absolute()) {
|
||||||
SDL_ShowCursor(1);
|
SDL_ShowCursor(1);
|
||||||
if (guest_cursor &&
|
if (guest_cursor &&
|
||||||
|
|
6
vl.c
6
vl.c
|
@ -189,6 +189,7 @@ const char *vnc_display;
|
||||||
int acpi_enabled = 1;
|
int acpi_enabled = 1;
|
||||||
int fd_bootchk = 1;
|
int fd_bootchk = 1;
|
||||||
int no_reboot = 0;
|
int no_reboot = 0;
|
||||||
|
int cursor_hide = 1;
|
||||||
int graphic_rotate = 0;
|
int graphic_rotate = 0;
|
||||||
int daemonize = 0;
|
int daemonize = 0;
|
||||||
const char *option_rom[MAX_OPTION_ROMS];
|
const char *option_rom[MAX_OPTION_ROMS];
|
||||||
|
@ -6618,6 +6619,7 @@ enum {
|
||||||
QEMU_OPTION_vnc,
|
QEMU_OPTION_vnc,
|
||||||
QEMU_OPTION_no_acpi,
|
QEMU_OPTION_no_acpi,
|
||||||
QEMU_OPTION_no_reboot,
|
QEMU_OPTION_no_reboot,
|
||||||
|
QEMU_OPTION_show_cursor,
|
||||||
QEMU_OPTION_daemonize,
|
QEMU_OPTION_daemonize,
|
||||||
QEMU_OPTION_option_rom,
|
QEMU_OPTION_option_rom,
|
||||||
QEMU_OPTION_semihosting,
|
QEMU_OPTION_semihosting,
|
||||||
|
@ -6712,6 +6714,7 @@ const QEMUOption qemu_options[] = {
|
||||||
{ "vmwarevga", 0, QEMU_OPTION_vmsvga },
|
{ "vmwarevga", 0, QEMU_OPTION_vmsvga },
|
||||||
{ "no-acpi", 0, QEMU_OPTION_no_acpi },
|
{ "no-acpi", 0, QEMU_OPTION_no_acpi },
|
||||||
{ "no-reboot", 0, QEMU_OPTION_no_reboot },
|
{ "no-reboot", 0, QEMU_OPTION_no_reboot },
|
||||||
|
{ "show-cursor", 0, QEMU_OPTION_show_cursor },
|
||||||
{ "daemonize", 0, QEMU_OPTION_daemonize },
|
{ "daemonize", 0, QEMU_OPTION_daemonize },
|
||||||
{ "option-rom", HAS_ARG, QEMU_OPTION_option_rom },
|
{ "option-rom", HAS_ARG, QEMU_OPTION_option_rom },
|
||||||
#if defined(TARGET_ARM)
|
#if defined(TARGET_ARM)
|
||||||
|
@ -7455,6 +7458,9 @@ int main(int argc, char **argv)
|
||||||
case QEMU_OPTION_no_reboot:
|
case QEMU_OPTION_no_reboot:
|
||||||
no_reboot = 1;
|
no_reboot = 1;
|
||||||
break;
|
break;
|
||||||
|
case QEMU_OPTION_show_cursor:
|
||||||
|
cursor_hide = 0;
|
||||||
|
break;
|
||||||
case QEMU_OPTION_daemonize:
|
case QEMU_OPTION_daemonize:
|
||||||
daemonize = 1;
|
daemonize = 1;
|
||||||
break;
|
break;
|
||||||
|
|
1
vl.h
1
vl.h
|
@ -158,6 +158,7 @@ extern int kqemu_allowed;
|
||||||
extern int win2k_install_hack;
|
extern int win2k_install_hack;
|
||||||
extern int usb_enabled;
|
extern int usb_enabled;
|
||||||
extern int smp_cpus;
|
extern int smp_cpus;
|
||||||
|
extern int cursor_hide;
|
||||||
extern int graphic_rotate;
|
extern int graphic_rotate;
|
||||||
extern int no_quit;
|
extern int no_quit;
|
||||||
extern int semihosting_enabled;
|
extern int semihosting_enabled;
|
||||||
|
|
Loading…
Reference in New Issue