mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-31 03:39:04 +08:00
fixo
This commit is contained in:
parent
6980c6669c
commit
7a954af5d0
@ -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.
|
||||
|
||||
@ -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
|
||||
)
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user