HID: ntrig: fix touch events
authorRafi Rubin <rafi@seas.upenn.edu>
Wed, 10 Mar 2010 15:10:28 +0000 (16:10 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 10 Mar 2010 15:10:28 +0000 (16:10 +0100)
This reinstates the lost unpressing of BTN_TOUCH.  To prevent undesireably
touch toggles this also deals with tip switch events.

Added a trap to prevent going out of bounds for hidinputs with empty reports.

Clear bits of unused buttons which result in misidentification.

Signed-off-by: Rafi Rubin <rafi@seas.upenn.edu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

No differences found