mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Fuzev2: Scrollwheel works like a charm :)
Move scrollwheel parsing function into separate file as it's reused. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25425 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
47dcf58e28
commit
f376fd2f4a
9 changed files with 187 additions and 115 deletions
|
|
@ -31,6 +31,13 @@ void button_init_device(void);
|
|||
bool button_hold(void);
|
||||
int button_read_device(void);
|
||||
unsigned short button_read_dbop(void);
|
||||
#define get_scrollwheel button_read_dbop
|
||||
|
||||
#define WHEEL_REPEAT_INTERVAL (HZ/5)
|
||||
#define WHEEL_COUNTER_DIV 4
|
||||
#define ACCEL_INCREMENT 2
|
||||
#define ACCEL_SHIFT 2
|
||||
|
||||
/* Sandisk Sansa Fuze button codes */
|
||||
|
||||
/* Main unit's buttons */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue