mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 09:48:37 +12:00
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:
parent
f617e47152
commit
91d834ce73
4 changed files with 16 additions and 17 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue