mirror of https://github.com/xemu-project/xemu.git
ui: Add labels to emulated/input device combos
This commit is contained in:
parent
dcd524c4bc
commit
c11c098ec6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue