Lines Matching refs:tool
32 __u16 tool;
185 int tool, x, y, rw;
190 tool = 0;
202 /* Get current tool identifier */
206 tool = BTN_TOOL_PEN;
210 tool = BTN_TOOL_RUBBER;
215 tool = BTN_TOOL_MOUSE;
219 /* Reset tool if out of active tablet area */
221 tool = 0;
224 /* If tool changed, notify input subsystem */
225 if (wdata->tool != tool) {
226 if (wdata->tool) {
227 /* Completely reset old tool state */
228 if (wdata->tool == BTN_TOOL_MOUSE) {
240 input_report_key(input, wdata->tool, 0);
243 wdata->tool = tool;
244 if (tool)
245 input_report_key(input, tool, 1);
248 if (tool) {
277 input_report_key(input, BTN_STYLUS2, (tool == BTN_TOOL_PEN) && data[1] & 0x04);