mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 15:47:06 +08:00
n°1 ci hater
This commit is contained in:
parent
cf78c23af9
commit
6d466ddf84
@ -832,7 +832,7 @@ class GamepadSettingsWindow(bui.Window):
|
|||||||
def _do_reset(self) -> None:
|
def _do_reset(self) -> None:
|
||||||
"""Resets the input's mapping settings."""
|
"""Resets the input's mapping settings."""
|
||||||
from babase import InputDeviceNotFoundError
|
from babase import InputDeviceNotFoundError
|
||||||
self._settings: dict[str, int] = {}
|
self._settings = {}
|
||||||
# Unplugging the controller while performing a
|
# Unplugging the controller while performing a
|
||||||
# mapping reset makes things go bonkers a little.
|
# mapping reset makes things go bonkers a little.
|
||||||
try:
|
try:
|
||||||
|
|||||||
@ -316,7 +316,7 @@ class ConfigKeyboardWindow(bui.Window):
|
|||||||
|
|
||||||
def _do_reset(self) -> None:
|
def _do_reset(self) -> None:
|
||||||
"""Resets the input's mapping settings."""
|
"""Resets the input's mapping settings."""
|
||||||
self._settings: dict[str, int] = {}
|
self._settings = {}
|
||||||
self._get_config_mapping(default=True)
|
self._get_config_mapping(default=True)
|
||||||
self._rebuild_ui(is_reset=True)
|
self._rebuild_ui(is_reset=True)
|
||||||
bui.getsound('gunCocking').play()
|
bui.getsound('gunCocking').play()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user