summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJohannes König <tjmueller2@freenet.de>2020-03-01 12:32:47 +0100
committerJohannes König <tjmueller2@freenet.de>2020-04-10 20:06:52 +0200
commit91739d124ed89fe056a311ac124100870b11c91b (patch)
tree33e771908bc2354d4219b5988667b8c821f93c8a /apps
parent8d2d6f4ca5ea75c9708f303c8b58aafe4b86de23 (diff)
downloadrockbox-91739d124ed89fe056a311ac124100870b11c91b.tar.gz
rockbox-91739d124ed89fe056a311ac124100870b11c91b.tar.bz2
rockbox-91739d124ed89fe056a311ac124100870b11c91b.zip
enable keylock for Sony NWZ-E370/E380
enable keylock in WPS and FMS by simultaniously pressing POWER and BACK. It was necessary to change the ACTION_FM_EXIT from BUTTON_BACK-button-press-event to BUTTON_BACK|BUTTON_REL-event and BUTTON_BACK|BUTTON_REPEAT-event to easily be able to press BUTTON_POWER|BUTTON_BACK without accidentally triggering ACTION_FM_EXIT. also rebase to current master and add myself to docs/CREDITS Change-Id: I263a034d0d8fd047d39265e3598ae7936dd8133d
Diffstat (limited to 'apps')
-rw-r--r--apps/keymaps/keymap-nwz.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/keymaps/keymap-nwz.c b/apps/keymaps/keymap-nwz.c
index 41edb74e69..66bdd1b0db 100644
--- a/apps/keymaps/keymap-nwz.c
+++ b/apps/keymaps/keymap-nwz.c
@@ -57,6 +57,7 @@ static const struct button_mapping button_context_wps[] = {
{ ACTION_WPS_QUICKSCREEN, BUTTON_POWER|BUTTON_REL, BUTTON_POWER },
{ ACTION_WPS_CONTEXT, BUTTON_POWER|BUTTON_REPEAT, BUTTON_NONE },
+ { ACTION_STD_KEYLOCK, BUTTON_POWER|BUTTON_BACK, BUTTON_NONE },
{ ACTION_WPS_SKIPNEXT, BUTTON_RIGHT|BUTTON_REL, BUTTON_RIGHT },
{ ACTION_WPS_SEEKFWD, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE },
@@ -153,7 +154,10 @@ static const struct button_mapping button_context_radio[] = {
{ ACTION_FM_PLAY, BUTTON_PLAY|BUTTON_REL, BUTTON_PLAY },
{ ACTION_FM_STOP, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_NONE },
- { ACTION_FM_EXIT, BUTTON_BACK, BUTTON_NONE },
+ { ACTION_STD_KEYLOCK, BUTTON_POWER|BUTTON_BACK, BUTTON_NONE },
+
+ { ACTION_FM_EXIT, BUTTON_BACK|BUTTON_REL, BUTTON_BACK },
+ { ACTION_FM_EXIT, BUTTON_BACK|BUTTON_REPEAT, BUTTON_NONE },
/* only compiled if there is a Volume UP button defined */
#ifdef BUTTON_VOL_UP