CogInput windows fixes

Fix CogInputWindow_Action reset button
Fix CogInputWindow_Gamepad LockPosition option
This commit is contained in:
Arnaud Jamin
2025-03-20 13:42:52 -04:00
parent f1478019e1
commit 25690a4103
2 changed files with 2 additions and 2 deletions
@@ -66,7 +66,7 @@ void FCogInputWindow_Actions::RenderContent()
if (ImGui::MenuItem("Reset"))
{
for (FCogInputMappingContextInfo Mapping : Mappings)
for (FCogInputMappingContextInfo& Mapping : Mappings)
{
for (FCogInputActionInfo& Action : Mapping.Actions)
{
@@ -500,7 +500,7 @@ void FCogInputWindow_Gamepad::RenderMainContextMenu()
{
ImGui::Checkbox("Overlay", &Config->bShowAsOverlay);
ImGui::Checkbox("Lock Position", &Config->bLockPosition);
ImGui::BeginDisabled(Config->bLockPosition);
ImGui::BeginDisabled(!Config->bLockPosition);
FCogWidgets::SetNextItemToShortWidth();
ImGui::SliderFloat2("Alignment", &Config->Alignment.X, 0, 1.0f, "%.2f");
FCogWidgets::SetNextItemToShortWidth();