ui: Add labels to emulated/input device combos

This commit is contained in:
Matt Borgerson 2025-07-02 12:23:49 -07:00 committed by mborgerson
parent dcd524c4bc
commit c11c098ec6
1 changed files with 14 additions and 1 deletions

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);