Re: [PATCH 5/6 v2] HID: magicmouse: enable Magic Trackpad support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Henrik Rydberg
Date: Tuesday, August 31, 2010 - 3:00 pm

On 08/31/2010 08:41 PM, Chase Douglas wrote:



Thanks for this driver. Comments inline.

[...]



The logic using single_touch_id seems complicated. Any chance you could get by
with less code here?




The tracking id reported by the macpad is not ideal; it works more like a slot
that a MT protocol tracking id. Perhaps it is a slot? I would recommend looking
at the recent submissions for bamboo touch, 3m-pct and w8001 to see how the
tracking id and slots could be handled.



The delta_time and last_timestamp do not seem to be used anywhere?



Nice find.



If the pointer emulation was handled differently, and the above was replaced
with something like

   if (!msc->ntouches)
  	input_mt_sync(input);

it would be short enough not to need to be broken out of the switch... Besides,
BTN_TOUCH is emitted for the trackpad case, so the above code is not strictly
needed.



As noted by Michael, this could likely be simplified. the "0x01" on the last
line could be the same coding as wellspring mode for bcm5974.

Thanks,
Henrik
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 4/6 v2] HID: magicmouse: remove axis data filtering, Chase Douglas, (Tue Aug 31, 11:41 am)
Re: [PATCH 5/6 v2] HID: magicmouse: enable Magic Trackpad ..., Henrik Rydberg, (Tue Aug 31, 3:00 pm)