• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/input/tablet/

Lines Matching refs:tool

26 			wacom->tool[0] = (data[5] & 0x20) ? BTN_TOOL_RUBBER : BTN_TOOL_PEN;
28 input_report_key(input, wacom->tool[0], 1);
29 input_report_abs(input, ABS_MISC, wacom->id[0]); /* report tool id */
36 input_report_key(input, wacom->tool[0], 0);
37 input_report_abs(input, ABS_MISC, 0); /* report tool id */
45 input_report_abs(input, ABS_MISC, STYLUS_DEVICE_ID); /* report tool id */
86 * an out of proximity for previous tool then a in for new tool.
88 if (!wacom->tool[0]) {
91 wacom->tool[1] = BTN_TOOL_RUBBER;
93 /* Going into proximity select tool */
94 wacom->tool[1] = (data[4] & 0x20) ? BTN_TOOL_RUBBER : BTN_TOOL_PEN;
97 if (wacom->tool[1] == BTN_TOOL_RUBBER && !(data[4] & 0x20)) {
98 /* report out proximity for previous tool */
99 input_report_key(input, wacom->tool[1], 0);
101 wacom->tool[1] = BTN_TOOL_PEN;
105 if (wacom->tool[1] != BTN_TOOL_RUBBER) {
106 /* Unknown tool selected default to pen tool */
107 wacom->tool[1] = BTN_TOOL_PEN;
110 input_report_key(input, wacom->tool[1], prox); /* report in proximity for tool */
111 input_report_abs(input, ABS_MISC, wacom->id[0]); /* report tool id */
118 /* Only allow the stylus2 button to be reported for the pen tool. */
119 input_report_key(input, BTN_STYLUS2, (wacom->tool[1] == BTN_TOOL_PEN) && (data[4] & 0x20));
121 /* report proximity-out of a (valid) tool */
122 if (wacom->tool[1] != BTN_TOOL_RUBBER) {
123 /* Unknown tool selected default to pen tool */
124 wacom->tool[1] = BTN_TOOL_PEN;
126 input_report_key(input, wacom->tool[1], prox);
129 wacom->tool[0] = prox; /* Save proximity state */
152 input_report_abs(input, ABS_MISC, wacom->id[0]); /* report tool id */
171 /* Going into proximity select tool */
172 wacom->tool[0] = (data[1] & 0x0c) ? BTN_TOOL_RUBBER : BTN_TOOL_PEN;
173 if (wacom->tool[0] == BTN_TOOL_PEN)
189 input_report_key(input, wacom->tool[0], prox);
214 wacom->tool[0] = BTN_TOOL_PEN;
219 wacom->tool[0] = BTN_TOOL_RUBBER;
228 wacom->tool[0] = BTN_TOOL_MOUSE;
235 if (wacom->tool[0] != BTN_TOOL_MOUSE) {
256 input_report_abs(input, ABS_MISC, wacom->id[0]); /* report tool id */
257 input_report_key(input, wacom->tool[0], prox);
309 /* tool number */
315 /* serial number of the tool */
328 wacom->tool[idx] = BTN_TOOL_PENCIL;
341 wacom->tool[idx] = BTN_TOOL_PEN;
346 wacom->tool[idx] = BTN_TOOL_BRUSH;
354 wacom->tool[idx] = BTN_TOOL_MOUSE;
360 wacom->tool[idx] = BTN_TOOL_LENS;
375 wacom->tool[idx] = BTN_TOOL_RUBBER;
383 wacom->tool[idx] = BTN_TOOL_AIRBRUSH;
386 default: /* Unknown tool */
387 wacom->tool[idx] = BTN_TOOL_PEN;
409 if (wacom->tool[idx] >= BTN_TOOL_MOUSE) {
426 input_report_key(input, wacom->tool[idx], 0);
427 input_report_abs(input, ABS_MISC, 0); /* reset tool id */
482 /* tool number */
486 /* pad packets. Works as a second tool and is always in prox */
489 if (wacom->tool[1] != BTN_TOOL_FINGER)
490 wacom->tool[1] = BTN_TOOL_FINGER;
511 input_report_key(input, wacom->tool[1], 1);
514 input_report_key(input, wacom->tool[1], 0);
555 input_report_key(input, wacom->tool[1], 1);
558 input_report_key(input, wacom->tool[1], 0);
576 if (wacom->tool[idx] == BTN_TOOL_LENS &&
631 } else if (wacom->tool[idx] == BTN_TOOL_MOUSE) {
661 wacom->tool[idx] == BTN_TOOL_LENS) {
671 input_report_abs(input, ABS_MISC, wacom->id[idx]); /* report tool id */
672 input_report_key(input, wacom->tool[idx], 1);
696 input_report_key(input, wacom->tool[finger], 1);
713 input_report_key(input, wacom->tool[finger], 0);
725 wacom->tool[1] = BTN_TOOL_DOUBLETAP;
727 wacom->tool[2] = BTN_TOOL_TRIPLETAP;
739 input_report_key(input, wacom->tool[1], 1);
760 input_report_key(input, wacom->tool[1], 1);
825 /* Going into proximity select tool */
826 wacom->tool[0] = (data[1] & 0x0c) ? BTN_TOOL_RUBBER : BTN_TOOL_PEN;
827 if (wacom->tool[0] == BTN_TOOL_PEN)
847 input_report_key(input, wacom->tool[0], prox);