forked from Boria138/PortProtonQt
fix(input_manager): prevent gamepad input handling during game execution
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
parent
a3d7351e16
commit
aabf8cb30f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user