diff options
author | Dana Conrad <dconrad@fastmail.com> | 2021-05-16 15:01:26 -0500 |
---|---|---|
committer | Dana Conrad <dconrad@fastmail.com> | 2021-05-27 19:58:09 -0500 |
commit | 8056b7fd1a333fe4d0c7ed8d3de0caf702f89164 (patch) | |
tree | c0b114af2cbfaa2ded440a2fc5c8b2b377613d9a /apps/keymaps/keymap-erosq.c | |
parent | 10d199f9d5bf85136211c0811e29679787343375 (diff) | |
download | rockbox-8056b7fd1a333fe4d0c7ed8d3de0caf702f89164.tar.gz rockbox-8056b7fd1a333fe4d0c7ed8d3de0caf702f89164.zip |
Yes/No Screen: Allow accept to be button release
Allows the ACTION_YESNO_ACCEPT action to be set
to a button release by ignoring certain system events.
Moving USB init in main.c to the last thing to prevent
getting stuck in the USB prompt, if enabled.
Also changing ACTION_YESNO_ACCEPT to button release on erosq
Change-Id: I5e7498521a13cb4e840223dd0b9c8633e99093bc
Diffstat (limited to 'apps/keymaps/keymap-erosq.c')
-rw-r--r-- | apps/keymaps/keymap-erosq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/keymaps/keymap-erosq.c b/apps/keymaps/keymap-erosq.c index 59b70d24ca..24d040ebec 100644 --- a/apps/keymaps/keymap-erosq.c +++ b/apps/keymaps/keymap-erosq.c | |||
@@ -118,7 +118,7 @@ static const struct button_mapping button_context_tree[] = { | |||
118 | }; /* button_context_tree */ | 118 | }; /* button_context_tree */ |
119 | 119 | ||
120 | static const struct button_mapping button_context_yesno[] = { | 120 | static const struct button_mapping button_context_yesno[] = { |
121 | { ACTION_YESNO_ACCEPT, BUTTON_PLAY, BUTTON_NONE }, | 121 | { ACTION_YESNO_ACCEPT, BUTTON_PLAY|BUTTON_REL, BUTTON_NONE }, |
122 | 122 | ||
123 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD), | 123 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD), |
124 | }; /* button_context_settings_yesno */ | 124 | }; /* button_context_settings_yesno */ |