A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd

rgnano: Proper keylock support

Can use the advanced keylock menu options now.

Change-Id: If59b16ef5649c328558a74dd0601bc2f272c37b7

+3 -5
+3 -1
apps/keymaps/keymap-rgnano.c
··· 47 47 { ACTION_STD_MENU, BUTTON_Y|BUTTON_REL, BUTTON_Y }, 48 48 { ACTION_STD_CONTEXT, BUTTON_START|BUTTON_REL, BUTTON_START }, 49 49 { ACTION_STD_QUICKSCREEN, BUTTON_R|BUTTON_REL, BUTTON_R }, 50 + { ACTION_STD_KEYLOCK, BUTTON_FN|BUTTON_START, BUTTON_NONE }, 50 51 51 52 LAST_ITEM_IN_LIST 52 53 }; /* button_context_standard */ ··· 76 77 { ACTION_WPS_ABSETB_NEXTDIR, BUTTON_A|BUTTON_RIGHT, BUTTON_A }, 77 78 { ACTION_WPS_ABRESET, BUTTON_A|BUTTON_UP, BUTTON_A }, 78 79 { ACTION_WPS_ABRESET, BUTTON_A|BUTTON_DOWN, BUTTON_A }, 80 + { ACTION_STD_KEYLOCK, BUTTON_FN|BUTTON_START, BUTTON_NONE }, 79 81 80 82 LAST_ITEM_IN_LIST 81 83 }; /* button_context_wps */ ··· 223 225 224 226 const struct button_mapping* get_context_mapping(int context) 225 227 { 226 - switch (context) 228 + switch (context & ~CONTEXT_LOCKED) 227 229 { 228 230 case CONTEXT_STD: 229 231 return button_context_standard;
-1
firmware/export/config/rgnano.h
··· 45 45 46 46 /* define this to indicate your device's keypad */ 47 47 #define HAVE_BUTTON_DATA 48 - #define HAS_BUTTON_HOLD 49 48 #define HAVE_VOLUME_IN_LIST 50 49 51 50 /* define this if you have a real-time clock */
-2
manual/rockbox_interface/wps.tex
··· 85 85 \opt{RG_NANO_PAD}{\ButtonStart+\ButtonFN} 86 86 & Key lock (software hold switch) on/off.\\ 87 87 }% 88 - \opt{RG_NANO_PAD}{\ButtonStart+\ButtonFN} 89 - & Key lock (software hold switch) on/off.\\ 90 88 % We explicitly list all the appropriate targets here and do no condition 91 89 % on the 'pitchscreen' feature since some players have the feature but do 92 90 % not have the button to go from the WPS to the pitch screen.
-1
packaging/rgnano/mapping.key
··· 2 2 UNMAP FN+A 3 3 UNMAP FN+B 4 4 UNMAP FN+X 5 - MAP START+FN TO KEY KEY_H