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