Rockbox General > Rockbox General Discussion
Sansa Clip + Buttons Change
(1/1)
Lizzard:
Hi, have a question
I wanna change function buttons in my Sansa Clip+, i think it's would be better for me "play/pause" button mapped on "Home" button.
In last release of Rockbox for Sansa Clip+ i find a file named "\.rockbox\rocks\viewers\lua\buttons.lua" with text:
-- Don't change this file!
-- It is automatically generated of button.h $Revision: 21630 $
rb.buttons = {
BUTTON_UP = 8,
BUTTON_VOL_DOWN = 4,
BUTTON_SELECT = 128,
BUTTON_REMOTE = 0,
BUTTON_POWER = 256,
BUTTON_DOWN = 16,
BUTTON_LEFT = 32,
BUTTON_RIGHT = 64,
BUTTON_MAIN = 511,
BUTTON_HOME = 1,
BUTTON_VOL_UP = 2,
BUTTON_REL = 33554432,
BUTTON_REPEAT = 67108864,
BUTTON_TOUCHSCREEN = 134217728,
}
Question: If i change port numbers in this file BUTTON_HOME = 1 to BUTTON_HOME = 8 and BUTTON_UP = 8 to BUTTON_UP = 1 it will work or not? And if i'm wrong what can i do to change buttons?
Thx a lot for answers..
GodEater:
Changing that file would only result in plugins written in lua changing their behaviour with regard to buttons - it wouldn't affect the rest of Rockbox's functionality.
If you want to change the buttons on your clip you will have to check out the Rockbox source code, edit that, and then compile your own build.
JdGordon:
The attached file will do what you need assuming you can do your own build.
Lizzard:
Wow, so fast, thx a LOT!!
Chronon:
Please try to use real words here rather than "text type".
Thanks. :)
Navigation
[0] Message Index
Go to full version