| Home | Forums | Register | FAQ | Search | Today's Posts | Mark Forums Read |
|
Welcome to the misticriver forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
how hard would it be to edit keymapping?
i don't know that much about programming, but if it's as easy and changing the way a couple values are defined, i want to take a stab at a custom keymap... anyone want to help guide me a little? where to look, and whatnot?
i'd tweak it a bit, work as i go kind of thing, but i'm pretty sure i want the record button to bring me to the file menu instead of navi. i like the idea of the file menu button being right above the main menu (A-B) button. i don't know for sure what else i'd do, but if it's easy enough to edit i'll take a stab at it. basically i need to know where to look... can someone tell me what source code file i would find this stuff in? i remember reading on the RB site what buttons return which values, so using that i should be able to do what i want... right? thanks -EGO
__________________
|
|
|||
|
where did you find which button returns which value? I would like to be able to use my h300 lcd remote, because with RB in the pocket it bothers me that i have a remote and have to take it out every time.
|
|
|||
|
airwin, i don't remember exactly. i'll poke around today and see if i can find it again.
Pi, i know i want to switch record with navi, 'cause i like the idea of both menu buttons being on the same side. whether i'll keep it that way, and what else i'll want to change, i'm not sure. if there's a code that says 'this is a button define,' just that info will probably be enough for me. all the better if you can tell me what files to look at -EGO
__________________
|
|
|||
|
it is just that that will change it for everything including plugins etc.
it might be better to change it within the specific area ie the WPS part
__________________
Pi() - My programing is only as good as my speling |
|
|||
|
Quote:
thanks, i'll play around with it. if i get it working a way i like, and i can get the plugins going alright too, i'll post a build with my keymappings. -EGO
__________________
|
|
|||
|
Quote:
-EGO
__________________
|
|
|||
|
Quote:
Quote:
rockbox\firmware\exp ort\button.h though i personaly would be reluctant to do this myself, to only change the wps screen you want to look at rockbox\apps\gui\gwp s.h again note: change at your own risk
__________________
Pi() - My programing is only as good as my speling |
|
|||
|
quick anti-update, i haven't really done anything yet. been a very busy weekend, i'll be free-er on weekdays. i'm not really worried about the plugins... i'll take a look at both files and do what i can... eventually.
-EGO
__________________
|
|
|||
|
alright, i edited the code and am compiling the build now. if this works, it should be no problem at all the switch the skip and volume commands either.
-EGO edit: Evolv3d, open up apps/gui/gwps.h and right at the top, replace the button definitions (where it says 'button definitions') with this: Code:
/* button definitions */
#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \
(CONFIG_KEYPAD == IRIVER_H300_PAD)
#define WPS_NEXT (BUTTON_UP | BUTTON_REL)
#define WPS_NEXT_PRE BUTTON_UP
#define WPS_PREV (BUTTON_DOWN | BUTTON_REL)
#define WPS_PREV_PRE BUTTON_DOWN
#define WPS_FFWD (BUTTON_UP | BUTTON_REPEAT)
#define WPS_REW (BUTTON_DOWN | BUTTON_REPEAT)
#define WPS_INCVOL BUTTON_RIGHT
#define WPS_DECVOL BUTTON_LEFT
#define WPS_PAUSE (BUTTON_ON | BUTTON_REL)
#define WPS_PAUSE_PRE BUTTON_ON
#define WPS_MENU (BUTTON_MODE | BUTTON_REL)
#define WPS_MENU_PRE BUTTON_MODE
#define WPS_BROWSE (BUTTON_SELECT | BUTTON_REL)
#define WPS_BROWSE_PRE BUTTON_SELECT
#define WPS_EXIT (BUTTON_OFF | BUTTON_REL)
#define WPS_EXIT_PRE BUTTON_OFF
#define WPS_ID3 (BUTTON_MODE | BUTTON_ON)
#define WPS_CONTEXT (BUTTON_SELECT | BUTTON_REPEAT)
#define WPS_QUICK (BUTTON_MODE | BUTTON_REPEAT)
#define WPS_NEXT_DIR (BUTTON_UP | BUTTON_ON)
#define WPS_PREV_DIR (BUTTON_DOWN | BUTTON_ON)
__________________
Last edited by Ego : December 21st, 2005 at 09:55 AM. |
|
|||
|
the code i put up is to switch volume to the left and right buttons instead of up and down, i just swapped each value for the other. i'll put up the code for my fix, swapping navi with record on the WPS screen only (so playlist creating will remain the same, etc.)
in apps/gui/gwps.h, change this: Code:
/* button definitions */
#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \
(CONFIG_KEYPAD == IRIVER_H300_PAD)
#define WPS_NEXT (BUTTON_RIGHT | BUTTON_REL)
#define WPS_NEXT_PRE BUTTON_RIGHT
#define WPS_PREV (BUTTON_LEFT | BUTTON_REL)
#define WPS_PREV_PRE BUTTON_LEFT
#define WPS_FFWD (BUTTON_RIGHT | BUTTON_REPEAT)
#define WPS_REW (BUTTON_LEFT | BUTTON_REPEAT)
#define WPS_INCVOL BUTTON_UP
#define WPS_DECVOL BUTTON_DOWN
#define WPS_PAUSE (BUTTON_ON | BUTTON_REL)
#define WPS_PAUSE_PRE BUTTON_ON
#define WPS_MENU (BUTTON_MODE | BUTTON_REL)
#define WPS_MENU_PRE BUTTON_MODE
#define WPS_BROWSE (BUTTON_SELECT | BUTTON_REL)
#define WPS_BROWSE_PRE BUTTON_SELECT
#define WPS_EXIT (BUTTON_OFF | BUTTON_REL)
#define WPS_EXIT_PRE BUTTON_OFF
#define WPS_ID3 (BUTTON_MODE | BUTTON_ON)
#define WPS_CONTEXT (BUTTON_SELECT | BUTTON_REPEAT)
#define WPS_QUICK (BUTTON_MODE | BUTTON_REPEAT)
#define WPS_NEXT_DIR (BUTTON_RIGHT | BUTTON_ON)
#define WPS_PREV_DIR (BUTTON_LEFT | BUTTON_ON)
Code:
/* button definitions */
#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \
(CONFIG_KEYPAD == IRIVER_H300_PAD)
#define WPS_NEXT (BUTTON_RIGHT | BUTTON_REL)
#define WPS_NEXT_PRE BUTTON_RIGHT
#define WPS_PREV (BUTTON_LEFT | BUTTON_REL)
#define WPS_PREV_PRE BUTTON_LEFT
#define WPS_FFWD (BUTTON_RIGHT | BUTTON_REPEAT)
#define WPS_REW (BUTTON_LEFT | BUTTON_REPEAT)
#define WPS_INCVOL BUTTON_UP
#define WPS_DECVOL BUTTON_DOWN
#define WPS_PAUSE (BUTTON_ON | BUTTON_REL)
#define WPS_PAUSE_PRE BUTTON_ON
#define WPS_MENU (BUTTON_MODE | BUTTON_REL)
#define WPS_MENU_PRE BUTTON_MODE
#define WPS_BROWSE (BUTTON_REC | BUTTON_REL)
#define WPS_BROWSE_PRE BUTTON_REC
#define WPS_EXIT (BUTTON_OFF | BUTTON_REL)
#define WPS_EXIT_PRE BUTTON_OFF
#define WPS_ID3 (BUTTON_MODE | BUTTON_ON)
#define WPS_CONTEXT (BUTTON_REC | BUTTON_REPEAT)
#define WPS_QUICK (BUTTON_MODE | BUTTON_REPEAT)
#define WPS_NEXT_DIR (BUTTON_RIGHT | BUTTON_ON)
#define WPS_PREV_DIR (BUTTON_LEFT | BUTTON_ON)
enjoy. -EGO
__________________
|