qt: Fix kb pad handler

This commit is contained in:
Nekotekina 2017-06-23 19:13:40 +03:00 committed by Ivan
parent d0b37777c3
commit 321f50bf7b

View File

@ -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()