mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 02:11:36 -04:00
Collapse identical SDL2/SDL3 arms in local mouse focus()
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
(cherry picked from commit 12d98c2202)
This commit is contained in:
@@ -62,11 +62,7 @@ psx::LocalMousePolicy& state() {
|
||||
bool focus() {
|
||||
if (!window_ || SDL_GetKeyboardFocus() != window_) return false;
|
||||
const auto flags = SDL_GetWindowFlags(window_);
|
||||
#if defined(PSX_SDL3)
|
||||
return (flags & (SDL_WINDOW_HIDDEN | SDL_WINDOW_MINIMIZED)) == 0;
|
||||
#else
|
||||
return (flags & (SDL_WINDOW_HIDDEN | SDL_WINDOW_MINIMIZED)) == 0;
|
||||
#endif
|
||||
}
|
||||
bool conflict() {
|
||||
const SDL_Scancode sc = scancode(state().hold_control());
|
||||
|
||||
Reference in New Issue
Block a user