mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
button driver: make repeat timings be centiseconds and not ticks
This doesn't change the value with the current HZ=100, but makes it easy to change HZ in custome builds and still have buttons be usable git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28086 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
24d8e8ef1a
commit
128593538b
1 changed files with 6 additions and 6 deletions
|
@ -69,14 +69,14 @@ static bool remote_filter_first_keypress;
|
|||
static bool phones_present = false;
|
||||
#endif
|
||||
|
||||
/* how long until repeat kicks in, in ticks */
|
||||
#define REPEAT_START 30
|
||||
/* how long until repeat kicks in, in centiseconds */
|
||||
#define REPEAT_START (30*HZ/100)
|
||||
|
||||
/* the speed repeat starts at, in ticks */
|
||||
#define REPEAT_INTERVAL_START 16
|
||||
/* the speed repeat starts at, in centiseconds */
|
||||
#define REPEAT_INTERVAL_START (16*HZ/100)
|
||||
|
||||
/* speed repeat finishes at, in ticks */
|
||||
#define REPEAT_INTERVAL_FINISH 5
|
||||
/* speed repeat finishes at, in centiseconds */
|
||||
#define REPEAT_INTERVAL_FINISH (5*HZ/100)
|
||||
|
||||
#ifdef HAVE_BUTTON_DATA
|
||||
static int button_read(int *data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue