android
  #1  
Old 02-27-2011, 03:33 PM
emreka emreka is offline
Junior Member
 
Join Date: Feb 2011
Posts: 1
Default Scrollwheel broke and looking to remap buttons.

As the title says I broke my scrollwheel and it's impossible to perform any tasks without it while Rockbox running. I'm trying to remap buttons, assign the functions of the scroll to other buttons and frankly I'm lost. I can compile a custom rockbox build thanks to the linux guide on rockbox.com but I dont know how to "customize" it.
What I want to do is get a key combination to replace the wheel. "Record Button+Up Button" for "Scroll Fwd" and "Record Button+Down Button" for "Scroll Back". Question is how to edit the keymap-e200.c.
An example from the keymap.e200.c
Code:
    { ACTION_STD_PREV,        BUTTON_SCROLL_BACK,                BUTTON_NONE },
    { ACTION_STD_PREVREPEAT,  BUTTON_SCROLL_BACK|BUTTON_REPEAT,  BUTTON_NONE },
    { ACTION_STD_NEXT,        BUTTON_SCROLL_FWD,                 BUTTON_NONE },
    { ACTION_STD_NEXTREPEAT,  BUTTON_SCROLL_FWD|BUTTON_REPEAT,   BUTTON_NONE },

    { ACTION_STD_MENU,        BUTTON_DOWN|BUTTON_REL,            BUTTON_DOWN },
    { ACTION_STD_REC,         BUTTON_REC|BUTTON_REPEAT,          BUTTON_NONE },

    { ACTION_STD_OK,          BUTTON_SELECT|BUTTON_REL,          BUTTON_SELECT },
    { ACTION_STD_OK,          BUTTON_RIGHT,                      BUTTON_NONE },
    { ACTION_STD_CANCEL,      BUTTON_LEFT,                       BUTTON_NONE },

    { ACTION_STD_QUICKSCREEN, BUTTON_DOWN|BUTTON_REPEAT,         BUTTON_DOWN },
    { ACTION_STD_CONTEXT,     BUTTON_SELECT|BUTTON_REPEAT,       BUTTON_SELECT },
So, how would a combination fit in there? I suppose I could replace all BUTTON_SCROLL_BACK&FWD with BUTTON_UP&DOWN but that would mean giving up those buttons.

I love my e280 and want to keep using it, but it is only possible if I pull this through. Waiting for your help. Thanks in advance.
Reply With Quote

Advertisement [Remove Advertisement]

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 10:39 AM.