Qt: add missing key auto repeat checks

This commit is contained in:
Megamouse 2021-06-12 15:04:33 +02:00
parent d3ff67ffb5
commit 35a380676e
7 changed files with 51 additions and 4 deletions

View file

@ -725,6 +725,11 @@ void pad_settings_dialog::keyPressEvent(QKeyEvent *keyEvent)
return;
}
if (keyEvent->isAutoRepeat())
{
return;
}
if (m_button_id <= button_ids::id_pad_begin || m_button_id >= button_ids::id_pad_end)
{
cfg_log.error("Pad Settings: Handler Type: %d, Unknown button ID: %d", static_cast<int>(m_handler->m_type), m_button_id);