mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-28 04:54:30 +00:00
Update kbm_gui.cpp
This commit is contained in:
parent
814f1831cf
commit
835affacd2
@ -699,6 +699,7 @@ bool KBMSettings::eventFilter(QObject* obj, QEvent* event) {
|
||||
if (event->type() == QEvent::KeyPress) {
|
||||
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
|
||||
QString keyText;
|
||||
|
||||
if (timer && timer->isActive()) {
|
||||
timer->stop();
|
||||
}
|
||||
@ -1008,7 +1009,6 @@ bool KBMSettings::eventFilter(QObject* obj, QEvent* event) {
|
||||
if (timer && timer->isActive()) {
|
||||
timer->stop();
|
||||
}
|
||||
|
||||
switch (mouseEvent->button()) {
|
||||
case Qt::LeftButton:
|
||||
buttonText = "leftbutton";
|
||||
@ -1025,6 +1025,7 @@ bool KBMSettings::eventFilter(QObject* obj, QEvent* event) {
|
||||
if (!buttonText.isEmpty() && !mappinglist.contains(buttonText)) {
|
||||
SetMapping(buttonText); // Add the key to the mapping list
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -1088,6 +1089,7 @@ bool KBMSettings::eventFilter(QObject* obj, QEvent* event) {
|
||||
if (!WheelText.isEmpty() && !mappinglist.contains(WheelText)) {
|
||||
SetMapping(WheelText);
|
||||
}
|
||||
|
||||
EnableMapping = false;
|
||||
EnableMappingButtons();
|
||||
timer->stop();
|
||||
|
Loading…
Reference in New Issue
Block a user