From 873e0fd1ef2ad0e8e1d74a9c9a3b0ed0cdfee35e Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sun, 22 Jul 2007 21:02:24 +0000 Subject: 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 --- apps/action.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/action.h') diff --git a/apps/action.h b/apps/action.h index 7acaf9c..5beacaa 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__ */ -- cgit v1.1