Support and General Use > User Interface and Voice

Button handler for the root menu

<< < (2/3) > >>

JdGordon:
in root_menu.c is the one you want...
what do you want to do?

fed:
I would like to add a new function to the rec button.  I know how to change keymap.  I've even succesfully changed a couple of buttons in the rec screen, and added the function to recording.c.  Now, I'd like to add a button function to the main menu (the one that starts up when rockbox boots.  The one with 'Files, Database, Setting, Recording, ...).  But I cannot find the switch where I should be putting in the new function.

JdGordon:
your being to vague too give proper help to...
menu.c in do_menu there is a switch for the action... add it there if (menu==&root_menu_)

fed:
In keymap, I assign an ACTION_SOMETHING to the rec button.  Then in recording.c I placed 'case ACTION_SOMETHING' in a switch that then ran my function when the button is pushed.  This worked.

I would like to do the same thing for the main menu, but I cannot find out where to place my function.

Does that help?

Also, what is 'grep'?

JdGordon:
grep is the unix/linux program to search in files...

my previous post told you where to put your action case

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version