mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
HID: wacom: convert Wacom custom usages to standard HID usages
Otherwise the switch would not catch the proper usages. Signed-off-by: Ping Cheng <[email protected]> Reviewed-by: Ping Cheng <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
578325120e
commit
418b573b43
1 changed files with 2 additions and 1 deletions
|
|
@ -394,6 +394,7 @@ static void wacom_usage_mapping(struct hid_device *hdev,
|
|||
struct wacom_features *features = &wacom->wacom_wac.features;
|
||||
bool finger = WACOM_FINGER_FIELD(field);
|
||||
bool pen = WACOM_PEN_FIELD(field);
|
||||
unsigned equivalent_usage = wacom_equivalent_usage(usage->hid);
|
||||
|
||||
/*
|
||||
* Requiring Stylus Usage will ignore boot mouse
|
||||
|
|
@ -409,7 +410,7 @@ static void wacom_usage_mapping(struct hid_device *hdev,
|
|||
|
||||
wacom_hid_usage_quirk(hdev, field, usage);
|
||||
|
||||
switch (usage->hid) {
|
||||
switch (equivalent_usage) {
|
||||
case HID_GD_X:
|
||||
features->x_max = field->logical_maximum;
|
||||
if (finger) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue