Support and General Use > Plugins/Viewers
Keyremap plugin - remaps keys in rockbox
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!
rnkn:
Hello,
Big thanks to Bilgus for this plugin.
I'm trying to adapt chris_s's keymap to be a little bit more like the original iPod firmware in that a menu long press will always return to the main menu. This mostly works, except in settings. This is what I've got:
--- Code: ---# 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 line
CONTEXT_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},
}
--- End code ---
It would seem that ACTION_STD_MENU is not available in CONTEXT_SETTINGS but I've been looking through the code and I can't find an alternative.
Any ideas would be greatly appreciated.
Edit: I'm using 2591f6ad02-241123 on an iPod 5.5g Video.
Navigation
[0] Message Index
[*] Previous page
Go to full version