Searched refs:focusWindow (Results 1 – 2 of 2) sorted by relevance
578 SDL_Window *focusWindow = SDL_GetKeyboardFocus(); local584 if (enabled && focusWindow) {588 SDL_SetMouseFocus(focusWindow);589 SDL_WarpMouseInWindow(focusWindow, focusWindow->w/2, focusWindow->h/2);635 SDL_Window *focusWindow; local642 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 …]
501 SDL_Window *focusWindow; in mouse_getMouseFocus() local504 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()