Support and General Use > Plugins/Viewers
Keyremap plugin - remaps keys in rockbox
bahus:
> I need a button level redirect to do it because they can use custom keymaps that will be really hard to figure out
I meant functionality to start some plugin/lua script by pressing some custom key combination. I didn't mean key remapping inside plugins...
Bilgus:
you do have a few of those, of the top of my head -- wps_hotkey can be set to open plugin,
Settings>General Settings>Hotkey
Bilgus:
Sample exported text keymap that can be imported to the plugin:
--- Code: ---# Key Remap
# Device: Sandisk Sansa Fuze+
# Entries: 4
# Each entry should be PROPER_CASE and on its own line
# Comments run to end of line
CONTEXT_WPS = {
{ACTION_WPS_STOP, BUTTON_VOL_DOWN | BUTTON_REPEAT, BUTTON_NONE},
}
CONTEXT_MAINMENU = {
{ACTION_TREE_STOP, BUTTON_VOL_DOWN | BUTTON_REPEAT, BUTTON_NONE},
}
--- End code ---
chris_s:
Thanks for your hard work on this, bilgus! Takes a bit of getting used to, but is super useful and quick to use once you get the hang of it. :) Hopefully it won't be too intimidating for some people to use who would benefit from it.
For anyone who prefers the button mapping on iPods to be closer to the original firmware, I'd suggest this keymap for you (may require some more tweaking, so it's possible I'll update this post later, but seems to work pretty well already – comments welcome):
--- Code: ---# Key Remap
# Device: Apple iPod 4g Grayscale
# 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_SELECT | BUTTON_MENU, BUTTON_NONE},
{ACTION_STD_CANCEL, BUTTON_MENU | BUTTON_REL, BUTTON_MENU},
}
CONTEXT_STD = {
{ACTION_STD_CANCEL, BUTTON_PLAY | BUTTON_REL, BUTTON_PLAY},
{ACTION_STD_CANCEL, BUTTON_MENU | BUTTON_REL, BUTTON_MENU},
}
CONTEXT_LIST = {
{ACTION_STD_CANCEL, BUTTON_MENU | BUTTON_REL, BUTTON_MENU},
{ACTION_STD_MENU, BUTTON_SELECT | BUTTON_MENU, BUTTON_NONE},
{ACTION_STD_CANCEL, BUTTON_PLAY | BUTTON_REL, BUTTON_PLAY},
}
CONTEXT_SETTINGS = {
{ACTION_STD_CANCEL, BUTTON_MENU | BUTTON_REL, BUTTON_MENU},
}
CONTEXT_MAINMENU = {
{ACTION_STD_CANCEL, BUTTON_MENU | BUTTON_REL, BUTTON_MENU},
}
CONTEXT_WPS = {
{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_CANCEL, BUTTON_MENU | BUTTON_REL, BUTTON_MENU},
}
--- End code ---
Summarized changes to the original keymap:
* Press Menu button on WPS to enter Browser, instead of returning to the main menu
* Press Menu button to go up one level
* Press Play button to go to WPS (eventually)
* Press Select button on WPS to display playlist
* Press Menu+Select to return to main menu
Frankenpod:
Trouble is I've gotten far too accustomed to the original default keymapping now to want to mess with it!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version