mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
iPods - implement button_hold() function
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8727 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1064f019b8
commit
3ba5a0b24a
2 changed files with 9 additions and 0 deletions
|
|
@ -1048,6 +1048,13 @@ static int button_read(void)
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (CONFIG_KEYPAD == IPOD_4G_PAD)
|
||||||
|
bool button_hold(void)
|
||||||
|
{
|
||||||
|
return (GPIOA_INPUT_VAL & 0x20)?false:true;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
|
#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
|
||||||
bool button_hold(void)
|
bool button_hold(void)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@
|
||||||
(CONFIG_KEYPAD == IRIVER_H300_PAD)
|
(CONFIG_KEYPAD == IRIVER_H300_PAD)
|
||||||
#define HAS_BUTTON_HOLD
|
#define HAS_BUTTON_HOLD
|
||||||
#define HAS_REMOTE_BUTTON_HOLD
|
#define HAS_REMOTE_BUTTON_HOLD
|
||||||
|
#elif (CONFIG_KEYPAD == IPOD_4G_PAD)
|
||||||
|
#define HAS_BUTTON_HOLD
|
||||||
#endif
|
#endif
|
||||||
extern struct event_queue button_queue;
|
extern struct event_queue button_queue;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue