forked from len0rd/rockbox
surfansf28: More fixes:
* Use 16-bit audio output * More audio tweaks (mute on startup, working volume control) * Treat the rotary input as a scroll wheel (works now) To-dos: * Better global keymap (incorporate touchscreen) * Turn on plugins and define the approximately eight bajillion keymaps * Still have some audible pops when we turn on, need to figure out why * Default Cabbiev2 comes off as rather crappy on this device ...I don't know how much work I will do on this thing, as the limited number of physical controls (and a lack of a line-out) mean I'd never want to use this thing myself. Change-Id: I37229d92766495219ee989d9ae48b5ed79bd45f5
This commit is contained in:
parent
9b39c96ac7
commit
0ebfab36ba
6 changed files with 26 additions and 34 deletions
|
|
@ -36,9 +36,9 @@ int button_map(int keycode)
|
|||
switch(keycode)
|
||||
{
|
||||
case KEY_LEFT:
|
||||
return BUTTON_LEFT;
|
||||
return BUTTON_SCROLL_BACK;
|
||||
case KEY_RIGHT:
|
||||
return BUTTON_RIGHT;
|
||||
return BUTTON_SCROLL_FWD;
|
||||
case KEY_PLAYPAUSE:
|
||||
return BUTTON_PLAY;
|
||||
case KEY_NEXTSONG:
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@
|
|||
#define BUTTON_PREV 0x00000002
|
||||
#define BUTTON_NEXT 0x00000004
|
||||
#define BUTTON_PLAY 0x00000008
|
||||
#define BUTTON_LEFT 0x00000010
|
||||
#define BUTTON_RIGHT 0x00000020
|
||||
#define BUTTON_SCROLL_BACK 0x00000010
|
||||
#define BUTTON_SCROLL_FWD 0x00000020
|
||||
#define BUTTON_MAIN 0x0000003f
|
||||
|
||||
#define BUTTON_TOUCH 0x00000040
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue