mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-23 15:42:39 -06:00
Add header descriptions for dpad axis and dpad button bindings
Co-authored-by: OpenSauce04 <opensauce04@gmail.com>
This commit is contained in:
parent
8b800e58f6
commit
af7ccc1955
2 changed files with 4 additions and 4 deletions
|
@ -650,14 +650,12 @@ class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView)
|
||||||
add(InputBindingSetting(button, Settings.axisTitles[i]))
|
add(InputBindingSetting(button, Settings.axisTitles[i]))
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Improve the integration of the two dpad types to be
|
add(HeaderSetting(R.string.controller_dpad_axis,R.string.controller_dpad_axis_description))
|
||||||
// less user-facingly hacky
|
|
||||||
add(HeaderSetting(R.string.controller_dpad_axis))
|
|
||||||
Settings.dPadAxisKeys.forEachIndexed { i: Int, key: String ->
|
Settings.dPadAxisKeys.forEachIndexed { i: Int, key: String ->
|
||||||
val button = getInputObject(key)
|
val button = getInputObject(key)
|
||||||
add(InputBindingSetting(button, Settings.axisTitles[i]))
|
add(InputBindingSetting(button, Settings.axisTitles[i]))
|
||||||
}
|
}
|
||||||
add(HeaderSetting(R.string.controller_dpad_button))
|
add(HeaderSetting(R.string.controller_dpad_button,R.string.controller_dpad_button_description))
|
||||||
Settings.dPadButtonKeys.forEachIndexed { i: Int, key: String ->
|
Settings.dPadButtonKeys.forEachIndexed { i: Int, key: String ->
|
||||||
val button = getInputObject(key)
|
val button = getInputObject(key)
|
||||||
add(InputBindingSetting(button, Settings.dpadTitles[i]))
|
add(InputBindingSetting(button, Settings.dpadTitles[i]))
|
||||||
|
|
|
@ -112,7 +112,9 @@
|
||||||
<string name="controller_trigger">Trigger</string>
|
<string name="controller_trigger">Trigger</string>
|
||||||
<string name="controller_dpad">D-Pad</string>
|
<string name="controller_dpad">D-Pad</string>
|
||||||
<string name="controller_dpad_axis">D-Pad (Axis)</string>
|
<string name="controller_dpad_axis">D-Pad (Axis)</string>
|
||||||
|
<string name="controller_dpad_axis_description">Some controllers may not be able to map their D-pad as an axis. If that\'s the case, use the D-Pad (buttons) section.</string>
|
||||||
<string name="controller_dpad_button">D-Pad (Button)</string>
|
<string name="controller_dpad_button">D-Pad (Button)</string>
|
||||||
|
<string name="controller_dpad_button_description">Only map the D-pad to these if you\'re facing issues with the D-Pad (Axis) button mappings.</string>
|
||||||
<string name="controller_axis_vertical">Up/Down Axis</string>
|
<string name="controller_axis_vertical">Up/Down Axis</string>
|
||||||
<string name="controller_axis_horizontal">Left/Right Axis</string>
|
<string name="controller_axis_horizontal">Left/Right Axis</string>
|
||||||
<string name="direction_up">Up</string>
|
<string name="direction_up">Up</string>
|
||||||
|
|
Loading…
Reference in a new issue