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:
Robert Kukla 2009-12-19 19:37:06 +00:00
parent dc010201a5
commit 275d960b04

View file

@ -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;
}