fix(input-manager): restore gamepad rumble on game launch by delaying disable_gamepad_handling
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
@ -1827,8 +1827,9 @@ class MainWindow(QMainWindow):
|
|||||||
exe_name = os.path.splitext(current_exe)[0]
|
exe_name = os.path.splitext(current_exe)[0]
|
||||||
env_vars = os.environ.copy()
|
env_vars = os.environ.copy()
|
||||||
|
|
||||||
|
# Delay disabling gamepad handling to allow rumble to complete
|
||||||
if hasattr(self, 'input_manager'):
|
if hasattr(self, 'input_manager'):
|
||||||
self.input_manager.disable_gamepad_handling()
|
QTimer.singleShot(200, self.input_manager.disable_gamepad_handling)
|
||||||
|
|
||||||
if entry_exec_split[0] == "env" and len(entry_exec_split) > 1 and 'data/scripts/start.sh' in entry_exec_split[1]:
|
if entry_exec_split[0] == "env" and len(entry_exec_split) > 1 and 'data/scripts/start.sh' in entry_exec_split[1]:
|
||||||
env_vars['START_FROM_STEAM'] = '1'
|
env_vars['START_FROM_STEAM'] = '1'
|
||||||
|
Reference in New Issue
Block a user