FS#8286 - utilise the buttons on the gigabeat cradle
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24080 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
dc010201a5
commit
275d960b04
1 changed files with 12 additions and 0 deletions
|
@ -155,6 +155,18 @@ int button_read_device(void)
|
|||
buttonlight_on();
|
||||
}
|
||||
|
||||
/* the cradle buttons */
|
||||
buttons = ~GPFDAT & 0xc0;
|
||||
if (buttons)
|
||||
{
|
||||
if (buttons & (1 << 6))
|
||||
btn |= BUTTON_A;
|
||||
|
||||
if (buttons & (1 << 7))
|
||||
btn |= BUTTON_POWER;
|
||||
buttonlight_on();
|
||||
}
|
||||
|
||||
return btn;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue