summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/button.c7
-rw-r--r--firmware/export/button.h2
2 files changed, 9 insertions, 0 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index db1033dc82..1cb9472e0f 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -1048,6 +1048,13 @@ static int button_read(void)
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)
bool button_hold(void)
{
diff --git a/firmware/export/button.h b/firmware/export/button.h
index 0ee8d67845..e1a75878c6 100644
--- a/firmware/export/button.h
+++ b/firmware/export/button.h
@@ -26,6 +26,8 @@
(CONFIG_KEYPAD == IRIVER_H300_PAD)
#define HAS_BUTTON_HOLD
#define HAS_REMOTE_BUTTON_HOLD
+#elif (CONFIG_KEYPAD == IPOD_4G_PAD)
+#define HAS_BUTTON_HOLD
#endif
extern struct event_queue button_queue;