mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
MappingWindow: don't store devq separately from controller default device
This commit is contained in:
@ -210,7 +210,6 @@ void MappingWindow::OnSaveProfilePressed()
|
||||
void MappingWindow::OnDeviceChanged(int index)
|
||||
{
|
||||
const auto device = m_devices_combo->currentText().toStdString();
|
||||
m_devq.FromString(device);
|
||||
m_controller->SetDefaultDevice(device);
|
||||
}
|
||||
|
||||
@ -316,14 +315,9 @@ ControllerEmu::EmulatedController* MappingWindow::GetController() const
|
||||
return m_controller;
|
||||
}
|
||||
|
||||
const ciface::Core::DeviceQualifier& MappingWindow::GetDeviceQualifier() const
|
||||
{
|
||||
return m_devq;
|
||||
}
|
||||
|
||||
std::shared_ptr<ciface::Core::Device> MappingWindow::GetDevice() const
|
||||
{
|
||||
return g_controller_interface.FindDevice(m_devq);
|
||||
return g_controller_interface.FindDevice(GetController()->GetDefaultDevice());
|
||||
}
|
||||
|
||||
void MappingWindow::OnDefaultFieldsPressed()
|
||||
|
Reference in New Issue
Block a user