Fixed Arrow Navigation in Controler Settings Window

This commit is contained in:
Vishal 2024-06-07 02:13:49 +05:30 committed by GitHub
parent 0388fb75f1
commit c5f3f6a807
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -229,6 +229,9 @@ class ControlsSettingsWindow(bui.Window):
label=bui.Lstr(resource=self._r + '.configureKeyboardText'),
on_activate_call=self._config_keyboard,
)
bui.widget(
edit=self._keyboard_button, left_widget=self._keyboard_button
)
if bui.app.ui_v1.use_toolbars:
bui.widget(
edit=btn,
@ -253,6 +256,9 @@ class ControlsSettingsWindow(bui.Window):
on_activate_call=self._config_keyboard2,
)
v -= spacing
bui.widget(
edit=self._keyboard_2_button, left_widget=self._keyboard_2_button
)
if show_space_2:
v -= space_height
if show_remote:
@ -264,6 +270,9 @@ class ControlsSettingsWindow(bui.Window):
label=bui.Lstr(resource=self._r + '.configureMobileText'),
on_activate_call=self._do_mobile_devices,
)
bui.widget(
edit=self._idevices_button, left_widget=self._idevices_button
)
if bui.app.ui_v1.use_toolbars:
bui.widget(
edit=btn,
@ -289,7 +298,7 @@ class ControlsSettingsWindow(bui.Window):
bui.getsound('gunCocking').play()
bui.set_low_level_config_value('enablexinput', not value)
bui.checkboxwidget(
xinput_checkbox = bui.checkboxwidget(
parent=self._root_widget,
position=(100, v + 3),
size=(120, 30),
@ -310,6 +319,11 @@ class ControlsSettingsWindow(bui.Window):
color=bui.app.ui_v1.infotextcolor,
maxwidth=width * 0.8,
)
bui.widget(
edit=xinput_checkbox,
left_widget=xinput_checkbox,
right_widget=xinput_checkbox
)
v -= spacing
if show_mac_controller_subsystem: