mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-07 05:35:02 -05:00
touchscreen: Increase report rate to 25fps
The touchscreen repeat interval effectively controls the report rate of the touchscreen to the action code. Touch interactions are smoother with a faster refresh rate, but the CPU needs to be fast enough to keep up, or we risk queue overflows. 25fps is the minimum required to appear smooth, and probably all targets will be able to handle the extra CPU load. Change-Id: I96dcc80ea2ce8b915ff5682360c2e719b835388d
This commit is contained in:
parent
9e254acab3
commit
0f4cc33d26
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ static bool enable_sw_poweroff = true;
|
||||||
/* speed repeat finishes at, in centiseconds */
|
/* speed repeat finishes at, in centiseconds */
|
||||||
#define REPEAT_INTERVAL_FINISH (5*HZ/100)
|
#define REPEAT_INTERVAL_FINISH (5*HZ/100)
|
||||||
/* repeat interval for touch events */
|
/* repeat interval for touch events */
|
||||||
#define REPEAT_INTERVAL_TOUCH (5*HZ/100)
|
#define REPEAT_INTERVAL_TOUCH (4*HZ/100)
|
||||||
|
|
||||||
static int lastdata = 0;
|
static int lastdata = 0;
|
||||||
static int button_read(int *data);
|
static int button_read(int *data);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue