summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tms320dm320/mrobe-500
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/arm/tms320dm320/mrobe-500
parent65eaf60b35f88ecaea3143915092971d8386649f (diff)
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/arm/tms320dm320/mrobe-500')
-rw-r--r--firmware/target/arm/tms320dm320/mrobe-500/button-mr500.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/target/arm/tms320dm320/mrobe-500/button-mr500.c b/firmware/target/arm/tms320dm320/mrobe-500/button-mr500.c
index 04acb71e45..7d9a43f902 100644
--- a/firmware/target/arm/tms320dm320/mrobe-500/button-mr500.c
+++ b/firmware/target/arm/tms320dm320/mrobe-500/button-mr500.c
@@ -108,9 +108,13 @@ inline bool button_hold(void)
return hold_button;
}
+/* Since this is a touchscreen, the expectation in higher levels is that the
+ * previous touch location is maintained when a release occurs. This is
+ * intended to mimic a mouse or other similar pointing device.
+ */
int button_read_device(int *data)
{
- static int old_data;
+ static int old_data = 0;
int button_read = BUTTON_NONE;
short touch_x, touch_y, touch_z1, touch_z2;
static bool hold_button_old = false;