Add controller button layout mappings

This adds mappings from SDL's Xbox-based SDL_GameControllerButton
constants, to glyphs for the following layouts:

- LAYOUT_NINTENDO_SWITCH_PRO,
- LAYOUT_NINTENDO_SWITCH_JOYCON_L,
- LAYOUT_NINTENDO_SWITCH_JOYCON_R,
- LAYOUT_DECK,
- LAYOUT_PLAYSTATION,
- LAYOUT_XBOX,
- LAYOUT_GENERIC,

There may still be errors in these, but they should be mostly correct.
I'm leaving it up to Ethan to make it show the correct button glyphs
for the correct controllers being connected (and possibly to fix these
mappings where needed).
This commit is contained in:
Dav999-v
2023-03-13 04:16:36 +01:00
committed by Misa Elizabeth Kai
parent 09365347b6
commit e55e9efd9b
9 changed files with 226 additions and 61 deletions

View File

@@ -213,6 +213,7 @@
<string english="Toggle whether you interact with prompts using ENTER or E." translation="" explanation="prompts: see the `Press {button} to talk to .../activate terminal/teleport` below" max="38*3"/>
<string english="E" translation="" explanation="keyboard key E. Speedrunner options menu"/>
<string english="ENTER" translation="" explanation="keyboard key ENTER. Speedrunner options menu"/>
<string english="ESC" translation="" explanation="keyboard key ESC"/>
<string english="ACTION" translation="" explanation="the ACTION key is either the SPACE key, Z or V (this is explained on the title screen). It's used in strings like `Press ACTION to advance text`"/>
<string english="Interact button: {button}" translation="" explanation="keyboard key (E or ENTER) is filled in for {button}. Speedrunner options menu" max="38*2"/>
<string english="fake load screen" translation="" explanation="menu option"/>