ui: Add labels to emulated/input device combos

This commit is contained in:
Matt Borgerson
2025-07-02 12:23:49 -07:00
parent dcd524c4bc
commit 9bae976eb6

View File

@ -172,7 +172,14 @@ void MainMenuInputView::Draw()
driver = DRIVER_DUKE_DISPLAY_NAME;
else if (strcmp(driver, DRIVER_S) == 0)
driver = DRIVER_S_DISPLAY_NAME;
ImGui::Columns(2, "", false);
ImGui::SetColumnWidth(0, ImGui::GetWindowWidth()*0.25);
ImGui::Text("Emulated Device");
ImGui::SameLine(0, 0);
ImGui::NextColumn();
ImGui::SetNextItemWidth(-FLT_MIN);
if (ImGui::BeginCombo("###InputDrivers", driver,
ImGuiComboFlags_NoArrowButton)) {
@ -204,10 +211,16 @@ void MainMenuInputView::Draw()
}
DrawComboChevron();
ImGui::NextColumn();
//
// Render input device combo
//
ImGui::Text("Input Device");
ImGui::SameLine(0, 0);
ImGui::NextColumn();
// List available input devices
const char *not_connected = "Not Connected";
ControllerState *bound_state = xemu_input_get_bound(active);