Qt/Input: improve DS4 device list

Needed to move Reset out to main_window due to hid closing problems. It's better to have the reset logic outside anyway
This commit is contained in:
Megamouse 2018-12-20 12:52:30 +01:00
parent f617e47152
commit 91d834ce73
4 changed files with 16 additions and 17 deletions

View file

@ -791,6 +791,7 @@ void pad_settings_dialog::ChangeInputType()
switch (m_handler->m_type)
{
#ifdef _WIN32
case pad_handler::ds4:
case pad_handler::xinput:
{
const QString name_string = qstr(m_handler->name_string());
@ -960,16 +961,6 @@ void pad_settings_dialog::SaveProfile()
m_handler_cfg.save();
}
void pad_settings_dialog::ResetPadHandler()
{
if (Emu.IsStopped())
{
return;
}
Emu.GetCallbacks().reset_pads();
}
void pad_settings_dialog::SaveExit()
{
SaveProfile();
@ -986,8 +977,6 @@ void pad_settings_dialog::SaveExit()
g_cfg_input.save();
ResetPadHandler();
QDialog::accept();
}