This image is the top of the content box. Unfortunately, there is no information-based reason for this div to be here. It's just here for design reasons. Sorry.
Go Back   MisticRiver :: For iriver Enthusiasts > All things Rockbox > ROCKbox Forums > ROCKbox for H3xx Series
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.
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old December 15th, 2005, 04:31 PM
Ego Ego is offline
Amorphous Mutating Mistic
 
Join Date: Dec 2004
Posts: 574
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
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old December 16th, 2005, 04:03 AM
Eager Mistic Beaver
 
Join Date: Oct 2005
Posts: 262
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old December 16th, 2005, 04:20 AM
Amorphous Mutating Mistic
 
Join Date: Aug 2005
Location: Scotland
Posts: 643
depends,
what sort of things do you want to change?
__________________
Pi() - My programing is only as good as my speling
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old December 16th, 2005, 06:28 AM
Ego Ego is offline
Amorphous Mutating Mistic
 
Join Date: Dec 2004
Posts: 574
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
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old December 16th, 2005, 06:34 AM
Amorphous Mutating Mistic
 
Join Date: Aug 2005
Location: Scotland
Posts: 643
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old December 16th, 2005, 06:39 AM
Amorphous Mutating Mistic
 
Join Date: Aug 2005
Location: Scotland
Posts: 643
i think you want
rockbox\firmware\exp ort\button.h
__________________
Pi() - My programing is only as good as my speling
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old December 16th, 2005, 07:11 AM
Ego Ego is offline
Amorphous Mutating Mistic
 
Join Date: Dec 2004
Posts: 574
Quote:
Originally Posted by 3.14159265
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
i'm not sure i know how to do that... would it be easier to change the important keys on the plugins themselves?

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
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old December 16th, 2005, 02:19 PM
Ego Ego is offline
Amorphous Mutating Mistic
 
Join Date: Dec 2004
Posts: 574
Quote:
Originally Posted by airwin
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.
i was thinking of this, but it looks like it'll help you more than me. i'll see what happens tonight

-EGO
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old December 16th, 2005, 03:30 PM
Mistic Surveyor
 
Join Date: May 2005
Posts: 182
Ill keep watching this thread... my volume buttons are messed up and id love to switch them with skip because i use that less
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old December 17th, 2005, 01:06 PM
Amorphous Mutating Mistic
 
Join Date: Aug 2005
Location: Scotland
Posts: 643
Quote:
Originally Posted by Evolv3d
Ill keep watching this thread... my volume buttons are messed up and id love to switch them with skip because i use that less
same as i said to Ego:

Quote:
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
to change the buttons for the whole player:
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old December 17th, 2005, 11:23 PM
Ego Ego is offline
Amorphous Mutating Mistic
 
Join Date: Dec 2004
Posts: 574
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
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old December 18th, 2005, 06:50 AM
Hopelessly Stuck In Mistic Limbo
 
Join Date: Mar 2005
Posts: 187
Well just to inform you's that this has already been doon by Ky3l has alreadly done this, At the moment im using rockbox with my h300 remote- no bugs
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old December 21st, 2005, 09:29 AM
Ego Ego is offline
Amorphous Mutating Mistic
 
Join Date: Dec 2004
Posts: 574
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)
that should do it
__________________

Last edited by Ego : December 21st, 2005 at 09:55 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old December 21st, 2005, 12:03 PM
Eager Mistic Beaver
 
Join Date: Oct 2005
Posts: 262
does it do the trick for you???
__________________
H320 EU running 1.29k rockbox | Sennheiser Pmx60 | (RB working) H300 LCD remote
Met RB>> Like RB>> Loving RB>> Married RB (all within 2 weeks)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old December 21st, 2005, 12:43 PM
Ego Ego is offline
Amorphous Mutating Mistic
 
Join Date: Dec 2004
Posts: 574
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)
to 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_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
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 06:34 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
This image is the bottom of the content box. Unfortunately, there is no information-based reason for this div to be here. It's just here for design reasons. Sorry.