diff --git a/rpcs3/rpcs3qt/pad_settings_dialog.cpp b/rpcs3/rpcs3qt/pad_settings_dialog.cpp index 3ef0614994..6b04edf30f 100644 --- a/rpcs3/rpcs3qt/pad_settings_dialog.cpp +++ b/rpcs3/rpcs3qt/pad_settings_dialog.cpp @@ -998,6 +998,23 @@ bool pad_settings_dialog::eventFilter(QObject* object, QEvent* event) { case QEvent::MouseButtonRelease: { + // On right click clear binding if we are not remapping pad button + if (m_button_id == button_ids::id_pad_begin) + { + QMouseEvent* mouse_event = static_cast(event); + if (const auto button = qobject_cast(object); button && mouse_event->button() == Qt::RightButton) + { + if (const int button_id = m_pad_buttons->id(button); m_cfg_entries.contains(button_id)) + { + m_cfg_entries[button_id].key.clear(); + m_cfg_entries[button_id].text.clear(); + UpdateLabels(); + + return true; + } + } + } + // Disabled buttons should not absorb mouseclicks event->ignore(); break;