diff --git a/Source/ImGui/Private/SImGuiWidget.cpp b/Source/ImGui/Private/SImGuiWidget.cpp index e677f56..dbd0ed1 100644 --- a/Source/ImGui/Private/SImGuiWidget.cpp +++ b/Source/ImGui/Private/SImGuiWidget.cpp @@ -495,8 +495,8 @@ void SImGuiWidget::UpdateInputEnabled() if (bInputEnabled) { - InputState.SetKeyboardNavigationEnabled(CVars::InputNavigation.GetValueOnGameThread() & 1); - InputState.SetGamepadNavigationEnabled(CVars::InputNavigation.GetValueOnGameThread() & 2); + InputState.SetKeyboardNavigationEnabled((CVars::InputNavigation.GetValueOnGameThread() & 1) != 0); + InputState.SetGamepadNavigationEnabled((CVars::InputNavigation.GetValueOnGameThread() & 2) != 0); const auto& Application = FSlateApplication::Get().GetPlatformApplication(); InputState.SetGamepad(Application.IsValid() && Application->IsGamepadAttached()); }