You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building in Android, SDL_HAS_CAPTURE_AND_GLOBAL_MOUSE is set to 0. Later, in ImGui_ImplSDL3_UpdateMouseData, code is defined by this flag. A variable is not initialized in the #else so there is a build error when it is used:
/imgui/backends/imgui_impl_sdl3.cpp:460:35: error: use of undeclared identifier 'focused_window'
Standalone, minimal, complete and verifiable example:
// I got it to compile in my local repo by setting focused_window to bd->window, is this desired initialization in this case?
SDL_Window* focused_window = bd->Window;
The text was updated successfully, but these errors were encountered:
ocornut
changed the title
Undeclared identifier 'focused_window'
SDL3 backend: Undeclared identifier 'focused_window' on Android/iOS/Emscripten
May 4, 2023
Version/Branch of Dear ImGui:
Version: 1.89.6 WIP
Branch: master (7c291ba)
Back-end
Back-ends: imgui_impl_sdl3.cpp
Compiler: Android Studio Dolphin, SDK 32
Operating System: Ventura 13.3.1
My Issue/Question:
When building in Android, SDL_HAS_CAPTURE_AND_GLOBAL_MOUSE is set to 0. Later, in ImGui_ImplSDL3_UpdateMouseData, code is defined by this flag. A variable is not initialized in the #else so there is a build error when it is used:
/imgui/backends/imgui_impl_sdl3.cpp:460:35: error: use of undeclared identifier 'focused_window'
Also, see #6386 (comment)
Screenshots/Video
Standalone, minimal, complete and verifiable example:
The text was updated successfully, but these errors were encountered: