BTN_TOOL_RUBBER
[BTN_TOOL_PEN] = "ToolPen", [BTN_TOOL_RUBBER] = "ToolRubber",
map_key_clear(BTN_TOOL_RUBBER);
if (!test_bit(BTN_TOOL_RUBBER, input->keybit)) {
set_bit(BTN_TOOL_RUBBER, input->keybit);
hid_report_set_tool(report, input, BTN_TOOL_RUBBER);
else if (report->tool != BTN_TOOL_RUBBER)
hid_report_release_tool(report, input, BTN_TOOL_RUBBER);
hid_report_set_tool(report, input, BTN_TOOL_RUBBER);
hid_report_release_tool(report, input, BTN_TOOL_RUBBER);
if (report->tool == BTN_TOOL_RUBBER)
wacom->tool[0] = (data[5] & 0x20) ? BTN_TOOL_RUBBER : BTN_TOOL_PEN;
wacom->tool[0] = BTN_TOOL_RUBBER;
wacom->tool[0] = (data[1] & 0x0c) ? BTN_TOOL_RUBBER : BTN_TOOL_PEN;
wacom->tool[0] = BTN_TOOL_RUBBER;
if (wacom->tool[0] == BTN_TOOL_RUBBER && !(data[4] & 0x20)) {
input_report_key(input, BTN_TOOL_RUBBER, 0);
BTN_TOOL_RUBBER, 0);
input_set_capability(input, EV_KEY, BTN_TOOL_RUBBER);
input_report_key(input, BTN_TOOL_RUBBER, data[1] & 0x20);
wacom_wac->tool[0] = BTN_TOOL_RUBBER;
wacom->tool[0] = (data[1] & 0x0c) ? BTN_TOOL_RUBBER : BTN_TOOL_PEN;
wacom->tool[0] = BTN_TOOL_RUBBER;
wacom->tool[0] = BTN_TOOL_RUBBER;
__set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
wacom->tool[0] = BTN_TOOL_RUBBER;
__set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
__set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
__set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
__set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
return BTN_TOOL_RUBBER;
#define AIPTEK_TOOL_BUTTON_ERASER_MODE BTN_TOOL_RUBBER
BTN_TOOL_PEN, BTN_TOOL_RUBBER, BTN_TOOL_PENCIL, BTN_TOOL_AIRBRUSH,
hanwang->current_tool = BTN_TOOL_RUBBER;
input_report_key(input_dev, BTN_TOOL_RUBBER, 1);
BTN_STYLUS, BTN_STYLUS2, BTN_TOOL_PEN, BTN_TOOL_RUBBER,
{ ERASER_DEVICE_ID, BTN_TOOL_RUBBER },
set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
int tool = (prox && rubber) ? BTN_TOOL_RUBBER : BTN_TOOL_PEN;
input_set_capability(input, EV_KEY, BTN_TOOL_RUBBER);
BTN_TOOL_RUBBER : BTN_TOOL_PEN;
__set_bit(BTN_TOOL_RUBBER, input->keybit);
w8001->type != BTN_TOOL_RUBBER) {
case BTN_TOOL_RUBBER:
input_report_key(dev, BTN_TOOL_RUBBER, 0);
w8001->type = coord->f2 ? BTN_TOOL_RUBBER : BTN_TOOL_PEN;
w8001->type != BTN_TOOL_RUBBER) {
__set_bit(BTN_TOOL_RUBBER, dev->keybit);