Lines Matching refs:sdl2_console
39 static struct sdl2_console *sdl2_console; variable
66 static void sdl_update_caption(struct sdl2_console *scon);
68 static struct sdl2_console *get_scon_from_window(uint32_t window_id) in get_scon_from_window()
72 if (sdl2_console[i].real_window == SDL_GetWindowFromID(window_id)) { in get_scon_from_window()
73 return &sdl2_console[i]; in get_scon_from_window()
79 void sdl2_window_create(struct sdl2_console *scon) in sdl2_window_create()
126 void sdl2_window_destroy(struct sdl2_console *scon) in sdl2_window_destroy()
144 void sdl2_window_resize(struct sdl2_console *scon) in sdl2_window_resize()
155 static void sdl2_redraw(struct sdl2_console *scon) in sdl2_redraw()
166 static void sdl_update_caption(struct sdl2_console *scon) in sdl_update_caption()
206 static void sdl_hide_cursor(struct sdl2_console *scon) in sdl_hide_cursor()
220 static void sdl_show_cursor(struct sdl2_console *scon) in sdl_show_cursor()
240 static void sdl_grab_start(struct sdl2_console *scon) in sdl_grab_start()
269 static void sdl_grab_end(struct sdl2_console *scon) in sdl_grab_end()
278 static void absolute_mouse_grab(struct sdl2_console *scon) in absolute_mouse_grab()
292 if (qemu_input_is_absolute(sdl2_console[0].dcl.con)) { in sdl_mouse_mode_change()
296 absolute_mouse_grab(&sdl2_console[0]); in sdl_mouse_mode_change()
300 sdl_grab_end(&sdl2_console[0]); in sdl_mouse_mode_change()
306 static void sdl_send_mouse_event(struct sdl2_console *scon, int dx, int dy, in sdl_send_mouse_event()
343 static void toggle_full_screen(struct sdl2_console *scon) in toggle_full_screen()
374 static void *sdl2_win32_get_hwnd(struct sdl2_console *scon) in sdl2_win32_get_hwnd()
390 struct sdl2_console *scon = get_scon_from_window(ev->key.windowID); in handle_keydown()
415 sdl2_console[win].hidden = !sdl2_console[win].hidden; in handle_keydown()
416 if (sdl2_console[win].real_window) { in handle_keydown()
417 if (sdl2_console[win].hidden) { in handle_keydown()
418 SDL_HideWindow(sdl2_console[win].real_window); in handle_keydown()
420 SDL_ShowWindow(sdl2_console[win].real_window); in handle_keydown()
478 struct sdl2_console *scon = get_scon_from_window(ev->key.windowID); in handle_keyup()
490 struct sdl2_console *scon = get_scon_from_window(ev->text.windowID); in handle_textinput()
505 struct sdl2_console *scon = get_scon_from_window(ev->motion.windowID); in handle_mousemotion()
537 struct sdl2_console *scon = get_scon_from_window(ev->button.windowID); in handle_mousebutton()
561 struct sdl2_console *scon = get_scon_from_window(ev->wheel.windowID); in handle_mousewheel()
589 struct sdl2_console *scon = get_scon_from_window(ev->window.windowID); in handle_windowevent()
666 void sdl2_poll_events(struct sdl2_console *scon) in sdl2_poll_events()
737 struct sdl2_console *scon = container_of(dcl, struct sdl2_console, dcl); in sdl_mouse_warp()
904 sdl2_console = g_new0(struct sdl2_console, sdl2_num_outputs); in sdl2_display_init()
910 sdl2_console[i].hidden = true; in sdl2_display_init()
912 sdl2_console[i].idx = i; in sdl2_display_init()
913 sdl2_console[i].opts = o; in sdl2_display_init()
915 sdl2_console[i].opengl = display_opengl; in sdl2_display_init()
916 sdl2_console[i].dcl.ops = display_opengl ? &dcl_gl_ops : &dcl_2d_ops; in sdl2_display_init()
917 sdl2_console[i].dgc.ops = display_opengl ? &gl_ctx_ops : NULL; in sdl2_display_init()
919 sdl2_console[i].opengl = 0; in sdl2_display_init()
920 sdl2_console[i].dcl.ops = &dcl_2d_ops; in sdl2_display_init()
922 sdl2_console[i].dcl.con = con; in sdl2_display_init()
923 sdl2_console[i].kbd = qkbd_state_init(con); in sdl2_display_init()
925 qemu_console_set_display_gl_ctx(con, &sdl2_console[i].dgc); in sdl2_display_init()
927 register_displaychangelistener(&sdl2_console[i].dcl); in sdl2_display_init()
930 if (SDL_GetWindowWMInfo(sdl2_console[i].real_window, &info)) { in sdl2_display_init()
954 SDL_SetWindowIcon(sdl2_console[0].real_window, icon); in sdl2_display_init()
964 sdl_grab_start(&sdl2_console[0]); in sdl2_display_init()