Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions imgui-SFML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif

#ifdef ANDROID
#ifdef SFML_SYSTEM_ANDROID
#ifdef USE_JNI

#include <SFML/System/NativeActivity.hpp>
Expand Down Expand Up @@ -264,7 +264,7 @@ struct WindowContext

std::optional<sf::Cursor> mouseCursors[ImGuiMouseCursor_COUNT];

#ifdef ANDROID
#ifdef SFML_SYSTEM_ANDROID
#ifdef USE_JNI
bool wantTextInput{false};
#endif
Expand Down Expand Up @@ -534,7 +534,7 @@ void Update(const sf::Vector2i& mousePos, const sf::Vector2f& displaySize, sf::T
}
}

#ifdef ANDROID
#ifdef SFML_SYSTEM_ANDROID
#ifdef USE_JNI
if (io.WantTextInput && !s_currWindowCtx->wantTextInput)
{
Expand Down