diff options
| author | german <german@thesoftwareartisans.com> | 2021-03-05 19:21:04 -0600 |
|---|---|---|
| committer | german <german@thesoftwareartisans.com> | 2021-03-05 19:21:04 -0600 |
| commit | 03c81d5e1f123a5b7decb9291cc66c2663ea8a0f (patch) | |
| tree | bb29a416ef52d308c38adb16b4ee7d0fe55fe391 /src/yuzu/bootmanager.cpp | |
| parent | 643c89399bc18eb3428b9c56eb87f94cbb21f27e (diff) | |
Enable button toggle for keyboard in the modifier button
Diffstat (limited to 'src/yuzu/bootmanager.cpp')
| -rw-r--r-- | src/yuzu/bootmanager.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index 1c61d419d1..50938fb044 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp @@ -376,11 +376,15 @@ void GRenderWindow::closeEvent(QCloseEvent* event) { } void GRenderWindow::keyPressEvent(QKeyEvent* event) { - input_subsystem->GetKeyboard()->PressKey(event->key()); + if (!event->isAutoRepeat()) { + input_subsystem->GetKeyboard()->PressKey(event->key()); + } } void GRenderWindow::keyReleaseEvent(QKeyEvent* event) { - input_subsystem->GetKeyboard()->ReleaseKey(event->key()); + if (!event->isAutoRepeat()) { + input_subsystem->GetKeyboard()->ReleaseKey(event->key()); + } } void GRenderWindow::mousePressEvent(QMouseEvent* event) { |
