summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-28 16:22:49 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-28 16:22:49 -0500
commit238f3ecc526600d5c18fead7820469719027b07c (patch)
treed84cd6606be4a81e32f8f0634aeb924b0457e5f8 /config.c
parent5b90057859cd38b284573460460ab27bd108aa0e (diff)
got file selector to behave better
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.c b/config.c
index 3baa943..bdec0d9 100644
--- a/config.c
+++ b/config.c
@@ -81,6 +81,8 @@ static u32 config_parse_key_combo(ConfigReader *cfg, char const *str) {
{"Period", 0, SDL_SCANCODE_PERIOD, 0},
{"Semicolon", 0, SDL_SCANCODE_SEMICOLON, 0},
{"Slash", 0, SDL_SCANCODE_SLASH, 0},
+ {"Enter", 0, SDL_SCANCODE_RETURN, 0},
+ {"Keypad Return", 0, SDL_SCANCODE_KP_ENTER, 0},
{"Exclaim", "Exclamation Mark", SDL_SCANCODE_1, 1},
{"!", 0, SDL_SCANCODE_1, 1},
{"At", "@", SDL_SCANCODE_2, 1},
@@ -103,7 +105,7 @@ static u32 config_parse_key_combo(ConfigReader *cfg, char const *str) {
{"Greater Than", ">", SDL_SCANCODE_PERIOD, 1},
{"Question Mark", "?", SDL_SCANCODE_SLASH, 1},
{"Question", 0, SDL_SCANCODE_SLASH, 1},
- {"Tilde", "~", SDL_SCANCODE_GRAVE, 1}
+ {"Tilde", "~", SDL_SCANCODE_GRAVE, 1},
};
// @OPTIMIZE: sort key_names (and split keyname1/2); do a binary search