mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
ui: Add labels to emulated/input device combos
This commit is contained in:
committed by
mborgerson
parent
dcd524c4bc
commit
c11c098ec6
+14
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user