--- fresh.qemu/monitor.c Thu Jul 15 13:17:52 2004 +++ qemu/monitor.c Thu Jul 15 19:11:17 2004 @@ -681,6 +681,12 @@ qemu_system_reset_request(); } +static void do_sdl_grab_toggle(void) +{ + grab_with_sdl = !grab_with_sdl; + term_printf("Grab with SDL is now set to: %s\n", grab_with_sdl ? "On" : "Off"); +} + static term_cmd_t term_cmds[] = { { "help|?", "s?", do_help, "[cmd]", "show the help" }, @@ -723,6 +729,8 @@ "keys", "send keys to the VM (e.g. 'sendkey ctrl-alt-f1')" }, { "system_reset", "", do_system_reset, "", "reset the system" }, + { "sdl|sdl_grab_toggle", "", do_sdl_grab_toggle, + "", "toggles SDL mouse grabbing vs mouse pointer following" }, { NULL, NULL, }, };