mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
D2: Don't read touchscreen co-ordinates when hold is enabled.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23079 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
16ada4cb81
commit
e6ec5414e8
1 changed files with 3 additions and 0 deletions
|
|
@ -43,6 +43,9 @@ void button_read_touch()
|
|||
{
|
||||
static long last_touch_interrupt = 0;
|
||||
static int touch_data_index = 0;
|
||||
|
||||
/* don't read the coordinates when hold is enabled */
|
||||
if (button_hold()) return;
|
||||
|
||||
/* put the touchscreen into idle mode */
|
||||
pcf50606_write(PCF5060X_ADCC1, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue