Lines Matching refs:tool
38 struct libinput_tablet_tool *tool;
80 struct libinput_tablet_tool *tool;
82 tool = zalloc(sizeof *tool);
84 *tool = (struct libinput_tablet_tool) {
91 tool->pressure.offset = 0;
92 tool->pressure.has_offset = false;
93 tool->pressure.threshold.lower = 0;
94 tool->pressure.threshold.upper = 1;
96 set_bit(tool->axis_caps, LIBINPUT_TABLET_TOOL_AXIS_X);
97 set_bit(tool->axis_caps, LIBINPUT_TABLET_TOOL_AXIS_Y);
98 set_bit(tool->axis_caps, LIBINPUT_TABLET_TOOL_AXIS_ROTATION_Z);
99 set_bit(tool->axis_caps, LIBINPUT_TABLET_TOOL_AXIS_SIZE_MAJOR);
100 set_bit(tool->axis_caps, LIBINPUT_TABLET_TOOL_AXIS_SIZE_MINOR);
101 set_bit(tool->buttons, BTN_0);
103 list_insert(&libinput->tool_list, &tool->link);
105 return tool;
122 * totem only does one tool right now despite being nominally an MT
248 "Unexpected tool type %#x, changing to dial\n",
263 struct libinput_tablet_tool *tool,
322 axes.delta = filter_dispatch(device->pointer.filter, &delta, tool, time);
334 struct libinput_tablet_tool *tool)
337 sizeof(tool->axis_caps),
341 tool->axis_caps,
380 if (!slot->tool)
381 slot->tool = totem_new_tool(totem);
383 totem_slot_mark_all_axes_changed(totem, slot, slot->tool);
387 assert(slot->tool);
394 updated = totem_slot_fetch_axes(totem, slot, slot->tool, &axes, time);
401 slot->tool,
408 slot->tool,
419 slot->tool,
451 slot->tool,
468 slot->tool,
475 slot->tool,
561 /* If we never initialized a tool, we can skip everything */
562 if (!slot->tool)
565 totem_slot_fetch_axes(totem, slot, slot->tool, &axes, now);
576 slot->tool,
589 slot->tool,
596 slot->tool,
677 slot->tool = totem_new_tool(totem);
679 totem_slot_mark_all_axes_changed(totem, slot, slot->tool);
680 totem_slot_fetch_axes(totem, slot, slot->tool, &axes, now);
683 slot->tool,
690 slot->tool,