We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 924c206 commit cde0fb4Copy full SHA for cde0fb4
src/input_manager.cpp
@@ -870,17 +870,16 @@ class InputManager
870
871
auto* controller = controllers[i];
872
std::string name = SDL_GetGamepadName(controller);
873
- bool isPrimary = (int)i == primaryControllerIndex;
874
875
- if (ImGui::Selectable(name.c_str(), isPrimary))
+ if(ImGui::Button(name.c_str()))
876
{
877
primaryControllerIndex = i;
878
setupGamepad(controller);
879
}
880
881
ImGui::TableNextColumn();
882
883
- if (isPrimary)
+ if (int(i) == primaryControllerIndex)
884
ImGui::Text("Active/Primary");
885
else
886
ImGui::Text("Inactive");
0 commit comments