Example #1
0
void InputConfigDialog::UpdateDeviceComboBox()
{
	DeviceQualifier dq;
	for (GamepadPage* page : m_padpages)
	{
		page->device_cbox->Clear();

		for (Device* d : g_controller_interface.Devices())
		{
			dq.FromDevice(d);
			page->device_cbox->Append(StrToWxStr(dq.ToString()));
		}

		page->device_cbox->SetValue(StrToWxStr(page->controller->default_device.ToString()));
	}
}
Example #2
0
void InputConfigDialog::UpdateDeviceComboBox()
{
	std::vector< GamepadPage* >::iterator i = m_padpages.begin(),
		e = m_padpages.end();
	DeviceQualifier dq;
	for (; i != e; ++i)
	{
		(*i)->device_cbox->Clear();
		std::vector<Device*>::const_iterator
			di = g_controller_interface.Devices().begin(),
			de = g_controller_interface.Devices().end();
		for (; di!=de; ++di)
		{
			dq.FromDevice(*di);
			(*i)->device_cbox->Append(StrToWxStr(dq.ToString()));
		}
		(*i)->device_cbox->SetValue(StrToWxStr((*i)->controller->default_device.ToString()));
	}
}