summaryrefslogtreecommitdiffstats
path: root/apps/action.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-10-22 12:26:53 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-10-22 12:26:53 +0000
commitfa13cbee8062d949d3cdcf17723183a5579493f2 (patch)
tree72df7c2b3eba20bf3011e22e067b7029a20b8868 /apps/action.h
parentba482642f2aeeeaa39fd22f68b908fc09b6f63ac (diff)
downloadrockbox-fa13cbee8062d949d3cdcf17723183a5579493f2.tar.gz
rockbox-fa13cbee8062d949d3cdcf17723183a5579493f2.tar.bz2
rockbox-fa13cbee8062d949d3cdcf17723183a5579493f2.zip
First go at getting the touchpad working in the ui. lists only for now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15264 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/action.h')
-rw-r--r--apps/action.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/action.h b/apps/action.h
index 9859c2c50c..c1c60c9b0b 100644
--- a/apps/action.h
+++ b/apps/action.h
@@ -78,6 +78,7 @@ enum {
ACTION_NONE = BUTTON_NONE,
ACTION_UNKNOWN,
ACTION_REDRAW, /* returned if keys are locked and we splash()'ed */
+ ACTION_TOUCHPAD,
/* standard actions, use these first */
ACTION_STD_PREV,
@@ -259,4 +260,13 @@ int get_action_statuscode(int *button);
BUTTON_NONE or flagged with SYS_EVENT */
intptr_t get_action_data(void);
+#ifdef HAVE_TOUCHPAD
+/* return BUTTON_NONE on error
+ BUTTON_REPEAT if repeated press
+ BUTTON_REL if its a short press
+ BUTTON_TOUCHPAD otherwise
+*/
+int action_get_touchpad_press(short *x, short *y);
+#endif
+
#endif /* __ACTION_H__ */