mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
input: only unregister devices if there is no other handler registered
Also center mouse if a new device was added
This commit is contained in:
parent
657acc90e4
commit
21c03b74b6
3 changed files with 48 additions and 27 deletions
|
|
@ -174,7 +174,7 @@ void raw_mouse_settings_dialog::update_combo_box(usz player)
|
|||
combo->setCurrentIndex(std::max(0, combo->findData(current_device)));
|
||||
combo->blockSignals(false);
|
||||
|
||||
if (player == m_tab_widget->currentIndex())
|
||||
if (static_cast<int>(player) == m_tab_widget->currentIndex())
|
||||
{
|
||||
handle_device_change(device_name);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue