Re-sending patches 4/11 and 10/11 to the list since it seems they disappeared somewhere before hitting the mailinglist...
Jason --- Now instead of four in the eights place / you’ve got three, ‘Cause you added one / (That is to say, eight) to the two, / But you can’t take seven from three, / So you look at the sixty-fours.... On Mon, Jan 12, 2015 at 11:48 AM, Jason Gerecke <killert...@gmail.com> wrote: > It is not necessarily sufficient to look only at the physical and logical > usages when determining if a field is for the pen or touch. Some fields > are not contained in a sub-collection and thus only have an application > usage. Not checking the application usage in such cases causes us to > ignore the field entirely, which may lead to incorrect behavior. > > Signed-off-by: Jason Gerecke <killert...@gmail.com> > Reviewed-by: Benjamin Tissoires <benjamin.tissoi...@redhat.com> > Signed-off-by: Jiri Kosina <jkos...@suse.cz> > Signed-off-by: Jason Gerecke <killert...@gmail.com> > --- > 3.17/wacom_wac.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/3.17/wacom_wac.c b/3.17/wacom_wac.c > index be5e5d6..9e46288 100644 > --- a/3.17/wacom_wac.c > +++ b/3.17/wacom_wac.c > @@ -1488,9 +1488,11 @@ static void wacom_wac_finger_report(struct hid_device > *hdev, > } > > #define WACOM_PEN_FIELD(f) (((f)->logical == HID_DG_STYLUS) || \ > - ((f)->physical == HID_DG_STYLUS)) > + ((f)->physical == HID_DG_STYLUS) || \ > + ((f)->application == HID_DG_PEN)) > #define WACOM_FINGER_FIELD(f) (((f)->logical == HID_DG_FINGER) || \ > - ((f)->physical == HID_DG_FINGER)) > + ((f)->physical == HID_DG_FINGER) || \ > + ((f)->application == HID_DG_TOUCHSCREEN)) > > void wacom_wac_usage_mapping(struct hid_device *hdev, > struct hid_field *field, struct hid_usage *usage) > -- > 2.1.3 > ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel