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
Page created in 0.045 seconds with 17 queries.