Home
last modified time | relevance | path

Searched refs:focusWindow (Results 1 – 2 of 2) sorted by relevance

/third_party/flutter/skia/third_party/externals/sdl/src/events/
DSDL_mouse.c578 SDL_Window *focusWindow = SDL_GetKeyboardFocus(); local
584 if (enabled && focusWindow) {
588 SDL_SetMouseFocus(focusWindow);
589 SDL_WarpMouseInWindow(focusWindow, focusWindow->w/2, focusWindow->h/2);
635 SDL_Window *focusWindow; local
642 focusWindow = SDL_GetKeyboardFocus();
644 isCaptured = focusWindow && (focusWindow->flags & SDL_WINDOW_MOUSE_CAPTURE);
650 if (!focusWindow) {
652 } else if (mouse->CaptureMouse(focusWindow) == -1) {
655 focusWindow->flags |= SDL_WINDOW_MOUSE_CAPTURE;
[all …]
/third_party/flutter/skia/third_party/externals/sdl/test/
Dtestautomation_mouse.c501 SDL_Window *focusWindow; in mouse_getMouseFocus() local
504 focusWindow = SDL_GetMouseFocus(); in mouse_getMouseFocus()
522 focusWindow = SDL_GetMouseFocus(); in mouse_getMouseFocus()
524 SDLTest_AssertCheck (focusWindow != NULL, "Check returned window value is not NULL"); in mouse_getMouseFocus()
525 SDLTest_AssertCheck (focusWindow == window, "Check returned window value is test window"); in mouse_getMouseFocus()
541 focusWindow = SDL_GetMouseFocus(); in mouse_getMouseFocus()
543 SDLTest_AssertCheck (focusWindow == NULL, "Check returned window value is NULL"); in mouse_getMouseFocus()