lkml.org 
[lkml]   [2010]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/4] input: mt: Move tracking and pointer emulation to input-mt
> @@ -132,12 +128,10 @@ static void parse_touch(struct w8001 *w8001)

> input_report_abs(dev, ABS_MT_POSITION_X, x);
> input_report_abs(dev, ABS_MT_POSITION_Y, y);
> input_report_abs(dev, ABS_MT_TOOL_TYPE, MT_TOOL_FINGER);
> - if (w8001->trkid[i] < 0)
> - w8001->trkid[i] = trkid++ & MAX_TRACKING_ID;
> + input_report_slot_state(dev, true);


input_mt_report_slot_state(dev, true);

> } else {
> - w8001->trkid[i] = -1;
> + input_report_slot_state(dev, false);


input_mt_report_slot_state(dev, false);

> }
> - input_report_abs(dev, ABS_MT_TRACKING_ID, w8001->trkid[i]);
> }
>
> input_sync(dev);


Henrik



\
 
 \ /
  Last update: 2010-11-30 22:53    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site