Files
nixos-hardware/onenetbook/4/goodix-stylus-mastykin/6.18.patch.patch
T

41 lines
1.2 KiB
Diff

--- orig.patch
+++ updated-6.18.patch
@@ -10,11 +10,11 @@
/* quirks to control the device */
#define MT_QUIRK_NOT_SEEN_MEANS_UP BIT(0)
#define MT_QUIRK_SLOT_IS_CONTACTID BIT(1)
-@@ -70,6 +73,7 @@
- #define MT_QUIRK_WIN8_PTP_BUTTONS BIT(18)
- #define MT_QUIRK_SEPARATE_APP_REPORT BIT(19)
- #define MT_QUIRK_FORCE_MULTI_INPUT BIT(20)
-+#define MT_QUIRK_NON_MT_PEN BIT(21)
+@@ -78,6 +78,7 @@
+ #define MT_QUIRK_APPLE_TOUCHBAR BIT(23)
+ #define MT_QUIRK_YOGABOOK9I BIT(24)
+ #define MT_QUIRK_KEEP_LATENCY_ON_CLOSE BIT(25)
++#define MT_QUIRK_NON_MT_PEN BIT(26)
#define MT_INPUTMODE_TOUCHSCREEN 0x02
#define MT_INPUTMODE_TOUCHPAD 0x03
@@ -36,14 +36,15 @@
};
struct mt_device {
-@@ -208,6 +216,7 @@
- #define MT_CLS_GOOGLE 0x0111
- #define MT_CLS_RAZER_BLADE_STEALTH 0x0112
+@@ -233,6 +234,7 @@
#define MT_CLS_SMART_TECH 0x0113
-+#define MT_CLS_NON_MT_PEN 0x0114
+ #define MT_CLS_APPLE_TOUCHBAR 0x0114
+ #define MT_CLS_YOGABOOK9I 0x0115
+ #define MT_CLS_EGALAX_P80H84 0x0116
++#define MT_CLS_NON_MT_PEN 0x0117
+ #define MT_CLS_SIS 0x0457
#define MT_DEFAULT_MAXCONTACT 10
- #define MT_MAX_MAXCONTACT 250
@@ -374,6 +383,9 @@
MT_QUIRK_CONTACT_CNT_ACCURATE |
MT_QUIRK_SEPARATE_APP_REPORT,