1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Karl Kurbjun 2009-08-14 23:08:50 +00:00
parent 65eaf60b35
commit 7ca4c7358d
3 changed files with 15 additions and 5 deletions

View file

@ -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;