This commit is contained in:
3alTemp 2024-03-05 03:09:49 -06:00
parent 6980c6669c
commit 7a954af5d0
No known key found for this signature in database
GPG Key ID: FC599A8DFAEC706C
3 changed files with 3 additions and 1 deletions

View File

@ -580,7 +580,7 @@ class ClassicSubsystem(babase.AppSubsystem):
name: str, name: str,
default: bool = False, default: bool = False,
) -> Any: ) -> Any:
"""Returns a mapped value for an input device. """Return a mapped value for an input device.
This checks the user config and falls back to default values This checks the user config and falls back to default values
where available. where available.

View File

@ -133,6 +133,7 @@ class GamepadSettingsWindow(bui.Window):
'analogStickUD_B', 'analogStickUD_B',
'enableSecondary', 'enableSecondary',
]: ]:
assert bui.app.classic is not None
val = bui.app.classic.get_input_device_mapped_value( val = bui.app.classic.get_input_device_mapped_value(
self._input, button, default self._input, button, default
) )

View File

@ -68,6 +68,7 @@ class ConfigKeyboardWindow(bui.Window):
'buttonLeft', 'buttonLeft',
'buttonRight', 'buttonRight',
]: ]:
assert bui.app.classic is not None
self._settings[ self._settings[
button button
] = bui.app.classic.get_input_device_mapped_value( ] = bui.app.classic.get_input_device_mapped_value(