Input: wacom - Advertise BTN_TOOL_PEN and BTN_STYLUS for PenPartner
Subsystems (2)
PATCH 1/1 Input: wacom - Advertise BTN_TOOL_PEN and BTN_STYLUS for PenPartner
The Wacom PenPartner should advertise its stylus tip and button in addition to the eraser tool. These are both physically present on the hardware, and emitted from 'wacom_penpartner_irq'.
--- drivers/input/tablet/wacom_wac.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/input/tablet/wacom_wac.c +2 -2
@@ -1191,13 +1191,13 @@ void wacom_setup_input_capabilities(struct input_dev *input_dev,case PL :case PTU :case DTU : -__set_bit (BTN_TOOL_PEN , input_dev->keybit); -__set_bit (BTN_STYLUS , input_dev->keybit);__set_bit (BTN_STYLUS2 , input_dev->keybit);/* fall through */ case PENPARTNER : +__set_bit (BTN_TOOL_PEN , input_dev->keybit);__set_bit (BTN_TOOL_RUBBER , input_dev->keybit); +__set_bit (BTN_STYLUS , input_dev->keybit);break ;case BAMBOO_PT :
Signature · 1 line
1.7.6
Quoted 5 lines · Jason Gerecke
The Wacom PenPartner should advertise its stylus tip and button in addition to the eraser tool. These are both physically present on the hardware, and emitted from '
wacom_penpartner_irq'.Signed-off-by Jason Gerecke <[email protected]>
Ping
Quoted 23 lines
---
drivers/input/tablet/wacom_wac.c | 4 ++--1 files changed, 2 insertions(+), 2 deletions(-)drivers/input/tablet/wacom_wac.c +0
-0@@ -1191,13 +1191,13 @@ void wacom_setup_input_capabilities(struct input_dev *input_dev,case PL:
case PTU:
case DTU:
-__set_bit(BTN_TOOL_PEN, input_dev->keybit);
-__set_bit(BTN_STYLUS, input_dev->keybit);__set_bit(BTN_STYLUS2, input_dev->keybit); /* fall through */case PENPARTNER:
+__set_bit(BTN_TOOL_PEN, input_dev->keybit);__set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
+__set_bit(BTN_STYLUS, input_dev->keybit); break;
Quoted 5 lines
case
BAMBOO_PT:
--
1.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 8 lines · Ping Cheng
Quoted 5 lines · Jason Gerecke
The Wacom PenPartner should advertise its stylus tip and button in addition to the eraser tool. These are both physically present on the hardware, and emitted from '
wacom_penpartner_irq'.Signed-off-by Jason Gerecke <[email protected]>Reviewed-by Ping Cheng <[email protected]>
Applied, thanks Jason.
Signature · 1 line
Dmitry