Skip to content

Commit

Permalink
tr2/input: add ui for editing controller layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Oct 31, 2024
1 parent 698915a commit b56ccd9
Show file tree
Hide file tree
Showing 28 changed files with 767 additions and 260 deletions.
10 changes: 5 additions & 5 deletions data/tr1/ship/cfg/TR1X_gameflow.json5
Original file line number Diff line number Diff line change
Expand Up @@ -595,13 +595,13 @@
],

"strings": {
"CONTROL_CONTROLLER": "Controller",
"CONTROL_BACKEND_CONTROLLER": "Controller",
"CONTROL_BACKEND_KEYBOARD": "Keyboard",
"CONTROL_CUSTOMIZE": "Customize Controls",
"CONTROL_CUSTOM_1": "Custom Scheme 1",
"CONTROL_CUSTOM_2": "Custom Scheme 2",
"CONTROL_CUSTOM_3": "Custom Scheme 3",
"CONTROL_CUSTOM_1": "User Keys 1",
"CONTROL_CUSTOM_2": "User Keys 2",
"CONTROL_CUSTOM_3": "User Keys 3",
"CONTROL_DEFAULT_KEYS": "Default Keys",
"CONTROL_KEYBOARD": "Keyboard",
"CONTROL_RESET_DEFAULTS": "Reset All: Hold %s",
"CONTROL_UNBIND": "Unbind: Hold %s",
"DETAIL_BILINEAR": "Bilinear",
Expand Down
10 changes: 5 additions & 5 deletions data/tr1/ship/cfg/TR1X_gameflow_demo_pc.json5
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@
],

"strings": {
"CONTROL_CONTROLLER": "Controller",
"CONTROL_BACKEND_CONTROLLER": "Controller",
"CONTROL_BACKEND_KEYBOARD": "Keyboard",
"CONTROL_CUSTOMIZE": "Customize Controls",
"CONTROL_CUSTOM_1": "Custom Scheme 1",
"CONTROL_CUSTOM_2": "Custom Scheme 2",
"CONTROL_CUSTOM_3": "Custom Scheme 3",
"CONTROL_CUSTOM_1": "User Keys 1",
"CONTROL_CUSTOM_2": "User Keys 2",
"CONTROL_CUSTOM_3": "User Keys 3",
"CONTROL_DEFAULT_KEYS": "Default Keys",
"CONTROL_KEYBOARD": "Keyboard",
"CONTROL_RESET_DEFAULTS": "Reset All: Hold %s",
"CONTROL_UNBIND": "Unbind: Hold %s",
"DETAIL_BILINEAR": "Bilinear",
Expand Down
10 changes: 5 additions & 5 deletions data/tr1/ship/cfg/TR1X_gameflow_ub.json5
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,13 @@
],

"strings": {
"CONTROL_CONTROLLER": "Controller",
"CONTROL_BACKEND_CONTROLLER": "Controller",
"CONTROL_BACKEND_KEYBOARD": "Keyboard",
"CONTROL_CUSTOMIZE": "Customize Controls",
"CONTROL_CUSTOM_1": "Custom Scheme 1",
"CONTROL_CUSTOM_2": "Custom Scheme 2",
"CONTROL_CUSTOM_3": "Custom Scheme 3",
"CONTROL_CUSTOM_1": "User Keys 1",
"CONTROL_CUSTOM_2": "User Keys 2",
"CONTROL_CUSTOM_3": "User Keys 3",
"CONTROL_DEFAULT_KEYS": "Default Keys",
"CONTROL_KEYBOARD": "Keyboard",
"CONTROL_RESET_DEFAULTS": "Reset All: Hold %s",
"CONTROL_UNBIND": "Unbind: Hold %s",
"DETAIL_BILINEAR": "Bilinear",
Expand Down
9 changes: 6 additions & 3 deletions data/tr2/ship/cfg/TR2X_gameflow.json5
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,12 @@
},

"game_strings": {
"CONTROL_CUSTOM_1": "Custom Scheme 1",
"CONTROL_CUSTOM_2": "Custom Scheme 2",
"CONTROL_CUSTOM_3": "Custom Scheme 3",
"CONTROL_BACKEND_CONTROLLER": "Controller",
"CONTROL_BACKEND_KEYBOARD": "Keyboard",
"CONTROL_CUSTOMIZE": "Customize Controls",
"CONTROL_CUSTOM_1": "User Keys 1",
"CONTROL_CUSTOM_2": "User Keys 2",
"CONTROL_CUSTOM_3": "User Keys 3",
"CONTROL_DEFAULT_KEYS": "Default Keys",
"MISC_OFF": "Off",
"MISC_ON": "On",
Expand Down
25 changes: 13 additions & 12 deletions docs/tr2/progress.txt
Original file line number Diff line number Diff line change
Expand Up @@ -261,18 +261,19 @@ typedef struct __unaligned {
union {
uint32_t all;
struct {
uint32_t active: 1;
uint32_t flash: 1;
uint32_t rotate_h: 1;
uint32_t rotate_v: 1;
uint32_t centre_h: 1;
uint32_t centre_v: 1;
uint32_t hide: 1;
uint32_t right: 1;
uint32_t bottom: 1;
uint32_t background: 1;
uint32_t outline: 1;
uint32_t multiline: 1;
uint32_t active: 1;
uint32_t flash: 1;
uint32_t rotate_h: 1;
uint32_t rotate_v: 1;
uint32_t centre_h: 1;
uint32_t centre_v: 1;
uint32_t hide: 1;
uint32_t right: 1;
uint32_t bottom: 1;
uint32_t background: 1;
uint32_t outline: 1;
uint32_t multiline: 1;
uint32_t manual_draw: 1; // not present in the OG
};
} flags;
uint16_t text_flags;
Expand Down
Loading

0 comments on commit b56ccd9

Please sign in to comment.