summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/onda_vx747
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-08-14 23:08:50 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-08-14 23:08:50 +0000
commit7ca4c7358d6bbbcbe1b5f535e39e73036edb6495 (patch)
treec4280d756dd161505e4f6d21b4c23e38892eb982 /firmware/target/mips/ingenic_jz47xx/onda_vx747
parent65eaf60b35f88ecaea3143915092971d8386649f (diff)
downloadrockbox-7ca4c7358d6bbbcbe1b5f535e39e73036edb6495.tar.gz
rockbox-7ca4c7358d6bbbcbe1b5f535e39e73036edb6495.tar.bz2
rockbox-7ca4c7358d6bbbcbe1b5f535e39e73036edb6495.zip
Hopefully get all of the touchscreen drivers to act the same so release events get the appropriate data.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22314 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/onda_vx747')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c b/firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c
index 24caac0100..592d0805a3 100644
--- a/firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c
+++ b/firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c
@@ -158,6 +158,9 @@ bool button_hold(void)
int button_read_device(int *data)
{
int ret = 0;
+ static int old_data = 0;
+
+ data = old_data;
/* Filter button events out if HOLD button is pressed at firmware/ level */
if(button_hold())
@@ -181,6 +184,8 @@ int button_read_device(int *data)
ret |= touchscreen_to_pixels(cur_touch >> 16, cur_touch & 0xFFFF, data);
if( UNLIKELY(!is_backlight_on(true)) )
*data = 0;
+
+ old_data = data;
}
return ret;