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 | 1f228c51ca2c510622f4204937f90c7f2bbc7bf6 (patch) | |
tree | bb29a416ef52d308c38adb16b4ee7d0fe55fe391 /src/yuzu/bootmanager.cpp | |
parent | 9d010be4837cc88e28c700f640c1c101092d482a (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 1c61d419d..50938fb04 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) { |