From aabf8cb30fe178594deffb907d9a041e33469894 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Thu, 5 Jun 2025 19:33:08 +0500 Subject: [PATCH] fix(input_manager): prevent gamepad input handling during game execution Signed-off-by: Boris Yumankulov --- portprotonqt/input_manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/portprotonqt/input_manager.py b/portprotonqt/input_manager.py index 893cdb4..27716fa 100644 --- a/portprotonqt/input_manager.py +++ b/portprotonqt/input_manager.py @@ -357,6 +357,8 @@ class InputManager(QObject): @Slot(int) def handle_button_slot(self, button_code: int) -> None: try: + if getattr(self._parent, '_gameLaunched', False): + return app = QApplication.instance() if not app: return @@ -407,6 +409,8 @@ class InputManager(QObject): @Slot(int, int, float) def handle_dpad_slot(self, code: int, value: int, current_time: float) -> None: try: + if getattr(self._parent, '_gameLaunched', False): + return app = QApplication.instance() if not app: return