mirror of
https://github.com/kevinporetti/UnrealImGui.git
synced 2025-01-18 08:20:32 +00:00
Fixed error caught with stricter compiler settings.
This commit is contained in:
parent
82729a12c8
commit
ec5bc3e738
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user