mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
touchscreen: change odd sentinel value for time of last touch
Using tick 0xffff does not make any sense, use -1 instead. Change-Id: Id574eb35418c6713c4fc91ed539aadc42fd29aa5
This commit is contained in:
parent
7e428ad190
commit
bff63a4f90
4 changed files with 8 additions and 8 deletions
|
@ -94,7 +94,7 @@ static int button_read(void);
|
|||
#endif
|
||||
|
||||
#ifdef HAVE_TOUCHSCREEN
|
||||
static int last_touchscreen_touch;
|
||||
static long last_touchscreen_touch;
|
||||
#endif
|
||||
#if defined(HAVE_HEADPHONE_DETECTION)
|
||||
static struct timeout hp_detect_timeout; /* Debouncer for headphone plug/unplug */
|
||||
|
@ -542,7 +542,7 @@ void button_init(void)
|
|||
#endif
|
||||
#endif
|
||||
#ifdef HAVE_TOUCHSCREEN
|
||||
last_touchscreen_touch = 0xffff;
|
||||
last_touchscreen_touch = -1;
|
||||
#endif
|
||||
/* Start polling last */
|
||||
tick_add_task(button_tick);
|
||||
|
@ -714,7 +714,7 @@ void button_clear_queue(void)
|
|||
}
|
||||
|
||||
#ifdef HAVE_TOUCHSCREEN
|
||||
int touchscreen_last_touch(void)
|
||||
long touchscreen_last_touch(void)
|
||||
{
|
||||
return last_touchscreen_touch;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue