Lines Matching refs:tool
85 { /* Is the tip of the tool touching? */
91 { /* In Range needs to come after the other tool states */
1023 * by Invert if tool reports proximity or by Eraser directly.
1496 unsigned int tool)
1498 /* if the given tool is not currently reported, ignore */
1499 if (!test_bit(tool, input->key))
1503 * if the given tool was previously set, release it,
1507 input_event(input, EV_KEY, tool, 0);
1510 report->tool = 0;
1516 if (report->tool != new_tool)
1517 hid_report_release_tool(report, input, report->tool);
1520 report->tool = new_tool;
1590 else if (report->tool != BTN_TOOL_RUBBER)
1591 /* value is off, tool is not rubber, ignore */
1596 * There is no invert to release the tool, let hid_input
1597 * send BTN_TOUCH with scancode and release the tool after.
1626 * if tool is not set but is marked as active,
1629 if (!report->tool)
1630 report->tool = usage->code;
1633 hid_report_set_tool(report, input, report->tool);
1647 /* if tool is set to RUBBER we should ignore the current value */
1648 if (report->tool == BTN_TOOL_RUBBER)