Lines Matching refs:axis

119  * Return a previous axis state, where index of 0 means "most recent", 1 is
142 enum libinput_tablet_tool_axis axis)
148 if (axis == LIBINPUT_TABLET_TOOL_AXIS_ROTATION_Z) {
158 code = axis_to_evcode(axis);
162 } else if (axis == LIBINPUT_TABLET_TOOL_AXIS_REL_WHEEL) {
167 code = axis_to_evcode(axis);
180 enum libinput_tablet_tool_axis axis)
185 previous = tablet->prev_value[axis];
212 enum libinput_tablet_tool_axis axis;
223 axis = evcode_to_axis(e->code);
224 if (axis == LIBINPUT_TABLET_TOOL_AXIS_NONE) {
231 tablet->prev_value[axis] = tablet->current_value[axis];
232 if (tablet_filter_axis_fuzz(tablet, device, e, axis))
235 tablet->current_value[axis] = e->value;
236 set_bit(tablet->changed_axes, axis);
363 * The axis is scaled into the range [lower, max] so that the lower
742 * If tool contact changes, clear the history to prevent axis smoothing
868 enum libinput_tablet_tool_axis axis;
872 axis = rel_evcode_to_axis(e->code);
873 if (axis == LIBINPUT_TABLET_TOOL_AXIS_NONE) {
879 set_bit(tablet->changed_axes, axis);
885 "Unhandled relative axis %s (%#x)\n",
918 enum libinput_tablet_tool_axis axis)
920 if (bit_is_set(tablet->axis_caps, axis))
921 set_bit(tool->axis_caps, axis);
1014 /* If we don't have libwacom, we simply copy any axis we have on the
1033 * ABS_Z. So let's not copy the axis bit if we don't have
1291 /* Make sure that the last axis value sent to the caller is a 0 */
1387 /* If we're closer than 50% of the distance axis, skip pressure
1461 "Missing pressure axis\n");
1771 /* Tool is leaving proximity, we can't rely on the last axis
1777 /* Don't send an axis event, but we may have a tip event
1852 /* We need to emulate a BTN_TOOL_PEN if we get an axis event (i.e.
2571 enum libinput_tablet_tool_axis axis;
2606 for (axis = LIBINPUT_TABLET_TOOL_AXIS_X;
2607 axis <= LIBINPUT_TABLET_TOOL_AXIS_MAX;
2608 axis++) {
2609 if (tablet_device_has_axis(tablet, axis))
2610 set_bit(tablet->axis_caps, axis);