Skip to content

Commit

Permalink
Merge pull request #571 from whot/wip/generic-groups
Browse files Browse the repository at this point in the history
Add generic groups for the generic styli
  • Loading branch information
Pinglinux authored Jun 28, 2023
2 parents 554b97d + 9317def commit b06d18d
Show file tree
Hide file tree
Showing 37 changed files with 40 additions and 37 deletions.
2 changes: 1 addition & 1 deletion data/dell-canvas-27.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ PairedID=usb:2575:0204
Width=23
Height=13
# No pad buttons, so no layout
Styli=0xffffd;
Styli=@generic-no-eraser;
IntegratedIn=Display

[Features]
Expand Down
2 changes: 1 addition & 1 deletion data/elan-2072.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Width=12
Height=7
Class=PenDisplay
IntegratedIn=Display;System
Styli=0xffffd;
Styli=@generic-no-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/elan-22e2.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ModelName=
DeviceMatch=i2c:04f3:22e2
Class=ISDV4
IntegratedIn=Display;System
Styli=0xffffe;0xfffff;
Styli=@generic-with-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/elan-24d8.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Class=ISDV4
Width=12
Height=7
IntegratedIn=Display;System;
Styli=0xffffe;0xfffff;
Styli=@generic-with-eraser;

[Features]
Reversible=false
Expand Down
2 changes: 1 addition & 1 deletion data/elan-264c.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Width=14
Height=8
IntegratedIn=Display;System
# This device supports both pens with eraser and without eraser
Styli=0xffffd;0xffffe;0xfffff;
Styli=@generic-no-eraser;@generic-with-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/elan-2fc2.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Class=ISDV4
Width=14
Height=8
IntegratedIn=Display;System
Styli=0xffffd;
Styli=@generic-no-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/gaomon-s620.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Width=6
Height=4
Layout=gaomon-s620.svg
IntegratedIn=
Styli=0xffffd;
Styli=@generic-no-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/huion-420.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Class=Bamboo
Width=4
Height=2
IntegratedIn=
Styli=0xffffd;
Styli=@generic-no-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/huion-h1060p.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Width=10
Height=6
IntegratedIn=
Layout=huion-h1060p.svg
Styli=0xffffd;
Styli=@generic-no-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/huion-h420.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Width=4
Height=2
IntegratedIn=
Layout=huion-h420.svg
Styli=0xffffd;
Styli=@generic-no-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/huion-h610-pro.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Width=10
Height=6
IntegratedIn=
Layout=huion-h610-pro.svg
Styli=0xffffd;
Styli=@generic-no-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/huion-h640p.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Width=6
Height=4
IntegratedIn=
Layout=huion-h640p.svg
Styli=0xffffd;
Styli=@generic-no-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/huion-h950p.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Width=9
Height=5
IntegratedIn=
Layout=huion-h950p.svg
Styli=0xffffd;
Styli=@generic-no-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/huion-hs611.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Width=10
Height=6
IntegratedIn=
Layout=huion-hs611.svg
Styli=0xffffd
Styli=@generic-no-eraser

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/huion-kamvas-13.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Width=12
Height=7
IntegratedIn=Display
Layout=huion-kamvas-13.svg
Styli=0xffffd
Styli=@generic-no-eraser

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/huion-new-1060-plus.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Width=10
Height=6
IntegratedIn=
Layout=huion-new-1060-plus.svg
Styli=0xffffd;
Styli=@generic-no-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/isdv4-016c.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Class=ISDV4
Width=12
Height=7
IntegratedIn=Display;System
Styli=0xfffff;0xffffe;0xffffd
Styli=@generic-with-eraser;@generic-no-eraser

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/isdv4-2d1f-002c.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Class=ISDV4
Width=10
Height=6
IntegratedIn=Display;System
Styli=0xfffff;0xffffe;
Styli=@generic-with-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/isdv4-2d1f-0066.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Class=ISDV4
Width=11
Height=7
IntegratedIn=Display;System
Styli=0xfffff;0xffffe;
Styli=@generic-with-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/isdv4-2d1f-0095.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Class=ISDV4
Width=8
Height=6
IntegratedIn=Display;System
Styli=0xfffff;0xffffe;
Styli=@generic-with-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/isdv4-2d1f-0114.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Class=ISDV4
Width=12
Height=7
IntegratedIn=Display;System
Styli=0xfffff;0xffffe;
Styli=@generic-with-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/isdv4-2d1f-0136.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Class=ISDV4
Width=14
Height=8
IntegratedIn=Display;System
Styli=0xfffff;0xffffe;
Styli=@generic-with-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/isdv4-5019.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Class=ISDV4
Width=12
Height=7
IntegratedIn=Display;System
Styli=0xfffff;0xffffe;
Styli=@generic-with-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/kamvas-pro-13.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ DeviceMatch=usb:256c:006e:Tablet Monitor Pen;usb:256c:006e:Tablet Monitor Pad;
Width=12
Height=7
Layout=kamvas-pro-13.svg
Styli=0xffffd;
Styli=@generic-no-eraser;
IntegratedIn=Display

[Features]
Expand Down
3 changes: 3 additions & 0 deletions data/libwacom.stylus
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# Some generic fallback styli
[0xfffff]
Name=General Pen
Group=generic-with-eraser
PairedStylusIds=0xffffe;
Buttons=2
Axes=Tilt;Pressure;Distance;
Type=General

[0xffffe]
Name=General Pen Eraser
Group=generic-with-eraser
PairedStylusIds=0xfffff;
EraserType=Invert
Buttons=2
Expand All @@ -16,6 +18,7 @@ Type=General

[0xffffd]
Name=General Pen with no Eraser
Group=generic-no-eraser
Buttons=2
Axes=Pressure;
Type=General
Expand Down
2 changes: 1 addition & 1 deletion data/volito-4x5.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ DeviceMatch=usb:056a:0060
Class=Graphire
Width=5
Height=4
Styli=0xffffd;
Styli=@generic-no-eraser;

[Features]
Stylus=true
Expand Down
4 changes: 2 additions & 2 deletions data/wacom.example
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ Layout=bamboo-16fg-m-pt.svg
# This is a list of stylus IDs supported by the tablet. Non-Wacom devices
# usually do not support specific stylus IDs and default to the generic
# pens. If the stylus has an eraser:
# Styli=0xffffe;0xfffff;
# Styli=@generic-with-eraser
# If the stylus does not have an eraser:
# Styli=0xffffd
# Styli=@generic-no-eraser
#
# For Wacom devices this is needed only for the professional series devices,
# i.e. Intuos Pro and Cintiq.
Expand Down
2 changes: 1 addition & 1 deletion data/waltop-slim-tablet-12-1.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ DeviceMatch=usb:172f:0031
Class=Bamboo
Width=10
Height=6
Styli=0xffffd;
Styli=@generic-no-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/xp-pen-artist12.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Width=10
Height=6
IntegratedIn=
Layout=xp-pen-artist12.svg
Styli=0xffffe;0xfffff;
Styli=@generic-with-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/xp-pen-deco-l.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Width=10
Height=6
IntegratedIn=
Layout=xp-pen-deco-l.svg
Styli=0xffffd
Styli=@generic-no-eraser

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/xp-pen-deco-mw.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Class=Bamboo
Width=8
Height=5
Layout=xp-pen-deco-mw.svg
Styli=0xffffd;
Styli=@generic-no-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/xp-pen-deco-pro-mw.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Width=11
Height=6
IntegratedIn=
Layout=xp-pen-deco-pro-s-m-sw-mw.svg
Styli=0xffffd
Styli=@generic-no-eraser

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/xp-pen-deco-pro-sw.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Width=9
Height=5
IntegratedIn=
Layout=xp-pen-deco-pro-s-m-sw-mw.svg
Styli=0xffffd
Styli=@generic-no-eraser

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/xp-pen-deco01-v2.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Width=10
Height=6
IntegratedIn=
Layout=xp-pen-deco01-v2.svg
Styli=0xffffd
Styli=@generic-no-eraser

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/xp-pen-g430.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ DeviceMatch=usb:28bd:0075
Class=Bamboo
Width=4
Height=3
Styli=0xffffd;
Styli=@generic-no-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/xp-pen-g640.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ DeviceMatch=usb:28bd:0914;usb:28bd:0094
Class=Bamboo
Width=6
Height=4
Styli=0xffffd;
Styli=@generic-no-eraser;

[Features]
Stylus=true
Expand Down
2 changes: 1 addition & 1 deletion data/xp-pen-star03.tablet
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Width=10
Height=6
IntegratedIn=
Layout=xp-pen-star03.svg
Styli=0xffffd;
Styli=@generic-no-eraser;

[Features]
Stylus=true
Expand Down

0 comments on commit b06d18d

Please sign in to comment.