Update kbm_gui.cpp

This commit is contained in:
tlarok 2025-04-10 18:05:01 +02:00 committed by GitHub
parent 11dc07a158
commit 3a411d1ec3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -702,7 +702,7 @@ bool KBMSettings::eventFilter(QObject* obj, QEvent* event) {
}
}
if (EnableMapping) {
if (EnableMapping) {
if (event->type() == QEvent::KeyPress) {
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
@ -1011,7 +1011,6 @@ bool KBMSettings::eventFilter(QObject* obj, QEvent* event) {
}
}
const QList<QPushButton*> AxisList = {
ui->LStickUpButton, ui->LStickDownButton, ui->LStickLeftButton, ui->LStickRightButton,
ui->RStickUpButton, ui->LStickDownButton, ui->LStickLeftButton, ui->RStickRightButton};