mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 17:11:23 +00:00
qt: Fix kb pad handler
This commit is contained in:
parent
d0b37777c3
commit
321f50bf7b
@ -36,12 +36,26 @@ bool keyboard_pad_handler::eventFilter(QObject* target, QEvent* ev)
|
||||
|
||||
void keyboard_pad_handler::keyPressEvent(QKeyEvent* event)
|
||||
{
|
||||
if (event->isAutoRepeat())
|
||||
{
|
||||
event->ignore();
|
||||
return;
|
||||
}
|
||||
|
||||
Key(event->key(), 1);
|
||||
event->ignore();
|
||||
}
|
||||
|
||||
void keyboard_pad_handler::keyReleaseEvent(QKeyEvent* event)
|
||||
{
|
||||
if (event->isAutoRepeat())
|
||||
{
|
||||
event->ignore();
|
||||
return;
|
||||
}
|
||||
|
||||
Key(event->key(), 0);
|
||||
event->ignore();
|
||||
}
|
||||
|
||||
void keyboard_pad_handler::LoadSettings()
|
||||
|
Loading…
Reference in New Issue
Block a user