Welcome to the Rockbox Technical Forums!
# Key Remap# Device: Sandisk Sansa# Entries: 5# Each entry should be PROPER_CASE and on its own line# Comments run to end of line CONTEXT_WPS_LOCKED = { {ACTION_WPS_SKIPNEXT, BUTTON_VOL_UP, BUTTON_NONE}, {ACTION_STD_CANCEL, BUTTON_RIGHT | BUTTON_REL, BUTTON_RIGHT}, {ACTION_WPS_SKIPPREV, BUTTON_VOL_DOWN, BUTTON_NONE}, {ACTION_STD_CANCEL, BUTTON_LEFT | BUTTON_REL, BUTTON_LEFT},}
@Isaac so are you trying to make it behave like the original firmware - change volume when unlocked, and skip tracks only when locked?in case you didn't know there's already a default key mapping to skip tracks while locked: hold the PLAY button (small circular one) while pressing the volume buttons.
Ok the key remap plugin now has _LOCKED contexts added for devices with HAVE_LOCKED_ACTIONSso far thats the M3k, the ClipV2, ClipPlus, ClipZipyou will need the latest dev version (>= 12/31/2020)here is an example keymap.txt for the clip(s) to remap the volume buttons to volup and voldn and disable the regular action of left and right (skip prev/next) while locked (and be sure use 'advanced key lock' set to allowing track skips)To apply use Import within the plugin once you save to a .txt fileCode: [Select]# Key Remap# Device: Sandisk Sansa# Entries: 5# Each entry should be PROPER_CASE and on its own line# Comments run to end of line CONTEXT_WPS_LOCKED = { {ACTION_WPS_SKIPNEXT, BUTTON_VOL_UP, BUTTON_NONE}, {ACTION_STD_CANCEL, BUTTON_RIGHT | BUTTON_REL, BUTTON_RIGHT}, {ACTION_WPS_SKIPPREV, BUTTON_VOL_DOWN, BUTTON_NONE}, {ACTION_STD_CANCEL, BUTTON_LEFT | BUTTON_REL, BUTTON_LEFT},}note: you can use ACTION_REDRAW instead of ACTION_STD_CANCELif you want to supress the 'Buttons Locked' message
# Key Remap# Device: Apple iPod 5.5g Video# Entries: 20# Each entry should be PROPER_CASE and on its own line# Comments run to end of lineCONTEXT_TREE = { {ACTION_STD_MENU, BUTTON_MENU|BUTTON_REPEAT, BUTTON_MENU}, {ACTION_STD_CANCEL, BUTTON_MENU|BUTTON_REL, BUTTON_MENU},}CONTEXT_STD = { {ACTION_STD_MENU, BUTTON_MENU|BUTTON_REPEAT, BUTTON_MENU}, {ACTION_STD_CANCEL, BUTTON_MENU|BUTTON_REL, BUTTON_MENU},}CONTEXT_LIST = { {ACTION_STD_MENU, BUTTON_MENU|BUTTON_REPEAT, BUTTON_MENU}, {ACTION_STD_CANCEL, BUTTON_MENU|BUTTON_REL, BUTTON_MENU},}CONTEXT_SETTINGS = { {ACTION_STD_MENU, BUTTON_MENU|BUTTON_REPEAT, BUTTON_MENU}, {ACTION_STD_CANCEL, BUTTON_MENU|BUTTON_REL, BUTTON_MENU},}CONTEXT_MAINMENU = { {ACTION_NONE, BUTTON_MENU|BUTTON_REPEAT, BUTTON_MENU}, {ACTION_STD_CANCEL, BUTTON_MENU|BUTTON_REL, BUTTON_MENU},}CONTEXT_WPS = { {ACTION_WPS_MENU, BUTTON_MENU|BUTTON_REPEAT, BUTTON_NONE}, {ACTION_WPS_VIEW_PLAYLIST, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT}, {ACTION_WPS_BROWSE, BUTTON_MENU|BUTTON_REL, BUTTON_MENU}, {ACTION_WPS_MENU, BUTTON_SELECT|BUTTON_MENU, BUTTON_NONE},}CONTEXT_BOOKMARKSCREEN = { {ACTION_STD_MENU, BUTTON_MENU|BUTTON_REPEAT, BUTTON_MENU}, {ACTION_STD_CANCEL, BUTTON_MENU|BUTTON_REL, BUTTON_MENU},}
Page created in 0.084 seconds with 18 queries.