Support and General Use > Plugins/Viewers

Keyremap plugin - remaps keys in rockbox

<< < (5/5)

Bilgus:
Ok the key remap plugin now has _LOCKED contexts added for devices with HAVE_LOCKED_ACTIONS

so far thats the M3k, the ClipV2, ClipPlus, ClipZip

you 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 file

--- Code: ---# 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},
}
--- End code ---

note: you can use ACTION_REDRAW instead of ACTION_STD_CANCEL
if you want to supress the 'Buttons Locked' message


Isaac Ness:

--- Quote from: amachronic on December 31, 2022, 08:04:35 AM ---@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.

--- End quote ---

Whoah, than you, that's a life saver!

Isaac Ness:

--- Quote from: Bilgus on December 31, 2022, 04:12:25 PM ---Ok the key remap plugin now has _LOCKED contexts added for devices with HAVE_LOCKED_ACTIONS

so far thats the M3k, the ClipV2, ClipPlus, ClipZip

you 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 file

--- Code: ---# 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},
}
--- End code ---

note: you can use ACTION_REDRAW instead of ACTION_STD_CANCEL
if you want to supress the 'Buttons Locked' message

--- End quote ---

Thanks a lot man!, yeah i was trying to be able to skip songs on blind mode, i'll try both!

Navigation

[0] Message Index

[*] Previous page

Go to full version