diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2006-02-05 00:20:11 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2006-02-05 00:20:11 +0000 |
| commit | 1ee68b0e885c4d356111aaae919ebc94a9d7a17c (patch) | |
| tree | 193aae3653516b1987bc6d8931474ded64635049 | |
| parent | 33fbe7c9045a12d8d1c3fe40aaf6084d1ca68f1c (diff) | |
| download | rockbox-1ee68b0e885c4d356111aaae919ebc94a9d7a17c.zip rockbox-1ee68b0e885c4d356111aaae919ebc94a9d7a17c.tar.gz rockbox-1ee68b0e885c4d356111aaae919ebc94a9d7a17c.tar.bz2 rockbox-1ee68b0e885c4d356111aaae919ebc94a9d7a17c.tar.xz | |
iAudio X5: hold button functions (not yet complete)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8574 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/drivers/button.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 79378cd..654852c 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -930,6 +930,18 @@ bool button_hold(void) } #endif +#if (CONFIG_KEYPAD == IAUDIO_X5_PAD) +bool button_hold(void) +{ + return (GPIO_READ & 0x08000000)?true:false; +} + +bool remote_button_hold(void) +{ + return false; /* TODO X5 */ +} +#endif + int button_status(void) { return lastbtn; |