mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 09:48:37 +12:00
Input: Enable In-Game Pad Config Reset
This commit is contained in:
parent
5a40c1802b
commit
bc3ab7a9d9
9 changed files with 142 additions and 32 deletions
|
@ -944,6 +944,16 @@ 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();
|
||||
|
@ -960,6 +970,8 @@ void pad_settings_dialog::SaveExit()
|
|||
|
||||
g_cfg_input.save();
|
||||
|
||||
ResetPadHandler();
|
||||
|
||||
QDialog::accept();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue