Skip to content

Commit 426e25d

Browse files
Ping ChengPinglinux
authored andcommitted
Remove hardcoded TabletSetFeature(common, WCM_PAD)
The flag is not used anywhere in the code. The PAD interface is decided in wcmConfig and wcmUSB. Signed-Off-By: Ping Cheng <[email protected]>
1 parent 6b0ccc1 commit 426e25d

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/wcmConfig.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -851,12 +851,6 @@ static void wcmDeviceTypeKeys(WacomDevicePtr priv)
851851
if (ISBITSET(common->wcmKeys, BTN_TOOL_PEN))
852852
TabletSetFeature(priv->common, WCM_PEN);
853853

854-
if (ISBITSET (common->wcmKeys, BTN_0) ||
855-
ISBITSET (common->wcmKeys, BTN_FORWARD))
856-
{
857-
TabletSetFeature(priv->common, WCM_PAD);
858-
}
859-
860854
/* This handles both protocol 4 and 5 meanings of wcmKeys */
861855
if (common->wcmProtocolLevel == WCM_PROTOCOL_4)
862856
{

src/xf86WacomDefs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ struct _WacomModel
121121
/* Each tablet may have one or more of the following
122122
* features */
123123
#define WCM_PEN 0x00000001 /* Tablet supports pens */
124-
#define WCM_PAD 0x00000002 /* Has a pad tool */
125124

126125
#define WCM_1FGT 0x00000004 /* One finger touch */
127126
#define WCM_2FGT 0x00000008 /* Two finger touch */

0 commit comments

Comments
 (0)