summaryrefslogtreecommitdiffstats
path: root/apps/action.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-07-22 21:02:24 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-07-22 21:02:24 +0000
commit873e0fd1ef2ad0e8e1d74a9c9a3b0ed0cdfee35e (patch)
tree29ca956fb87b7f8c17cb5061d3afcfda70c44e4c /apps/action.h
parent3213d4a0f5d3aea725bb9ddf34ae0ec38ca4b097 (diff)
downloadrockbox-873e0fd1ef2ad0e8e1d74a9c9a3b0ed0cdfee35e.tar.gz
rockbox-873e0fd1ef2ad0e8e1d74a9c9a3b0ed0cdfee35e.tar.bz2
rockbox-873e0fd1ef2ad0e8e1d74a9c9a3b0ed0cdfee35e.zip
Wheel acceleration for e200. A general acceleration interface intended for use on any scroll target and by any code. A general interface to obtain data associated with most recently dequeued button presses and actions. Use #define HAVE_SCROLLWHEEL and set appropriate constants, values in the scroller driver that feel right.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13959 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/action.h')
-rw-r--r--apps/action.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/action.h b/apps/action.h
index 7acaf9c005..5beacaa0e2 100644
--- a/apps/action.h
+++ b/apps/action.h
@@ -253,6 +253,8 @@ bool is_keys_locked(void);
#define ACTION_REPEAT 0x2 /* action was repeated (NOT button) */
int get_action_statuscode(int *button);
+/* returns the data value associated with the last action that is not
+ BUTTON_NONE or flagged with SYS_EVENT */
+intptr_t get_action_data(void);
-
-#endif
+#endif /* __ACTION_H__ */