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,
default: bool = False,
) -> 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
where available.

View File

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

View File

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