• Home
  • Raw
  • Download

Lines Matching refs:tool

38 	struct libinput_tablet_tool *tool;  member
80 struct libinput_tablet_tool *tool; in totem_new_tool() local
82 tool = zalloc(sizeof *tool); in totem_new_tool()
84 *tool = (struct libinput_tablet_tool) { in totem_new_tool()
91 tool->pressure_offset = 0; in totem_new_tool()
92 tool->has_pressure_offset = false; in totem_new_tool()
93 tool->pressure_threshold.lower = 0; in totem_new_tool()
94 tool->pressure_threshold.upper = 1; in totem_new_tool()
96 set_bit(tool->axis_caps, LIBINPUT_TABLET_TOOL_AXIS_X); in totem_new_tool()
97 set_bit(tool->axis_caps, LIBINPUT_TABLET_TOOL_AXIS_Y); in totem_new_tool()
98 set_bit(tool->axis_caps, LIBINPUT_TABLET_TOOL_AXIS_ROTATION_Z); in totem_new_tool()
99 set_bit(tool->axis_caps, LIBINPUT_TABLET_TOOL_AXIS_SIZE_MAJOR); in totem_new_tool()
100 set_bit(tool->axis_caps, LIBINPUT_TABLET_TOOL_AXIS_SIZE_MINOR); in totem_new_tool()
101 set_bit(tool->buttons, BTN_0); in totem_new_tool()
103 list_insert(&libinput->tool_list, &tool->link); in totem_new_tool()
105 return tool; in totem_new_tool()
263 struct libinput_tablet_tool *tool, in totem_slot_fetch_axes() argument
322 axes.delta = filter_dispatch(device->pointer.filter, &delta, tool, time); in totem_slot_fetch_axes()
334 struct libinput_tablet_tool *tool) in totem_slot_mark_all_axes_changed() argument
337 sizeof(tool->axis_caps), in totem_slot_mark_all_axes_changed()
341 tool->axis_caps, in totem_slot_mark_all_axes_changed()
380 if (!slot->tool) in totem_handle_slot_state()
381 slot->tool = totem_new_tool(totem); in totem_handle_slot_state()
383 totem_slot_mark_all_axes_changed(totem, slot, slot->tool); in totem_handle_slot_state()
387 assert(slot->tool); in totem_handle_slot_state()
394 updated = totem_slot_fetch_axes(totem, slot, slot->tool, &axes, time); in totem_handle_slot_state()
401 slot->tool, in totem_handle_slot_state()
408 slot->tool, in totem_handle_slot_state()
419 slot->tool, in totem_handle_slot_state()
451 slot->tool, in totem_handle_slot_state()
468 slot->tool, in totem_handle_slot_state()
475 slot->tool, in totem_handle_slot_state()
562 if (!slot->tool) in totem_interface_suspend()
565 totem_slot_fetch_axes(totem, slot, slot->tool, &axes, now); in totem_interface_suspend()
576 slot->tool, in totem_interface_suspend()
589 slot->tool, in totem_interface_suspend()
596 slot->tool, in totem_interface_suspend()
677 slot->tool = totem_new_tool(totem); in totem_interface_initial_proximity()
679 totem_slot_mark_all_axes_changed(totem, slot, slot->tool); in totem_interface_initial_proximity()
680 totem_slot_fetch_axes(totem, slot, slot->tool, &axes, now); in totem_interface_initial_proximity()
683 slot->tool, in totem_interface_initial_proximity()
690 slot->tool, in totem_interface_initial_proximity()