• Home
  • Raw
  • Download

Lines Matching refs:axes

103 		    const struct tablet_axes *axes)  in tablet_history_push()  argument
108 tablet->history.samples[index] = *axes; in tablet_history_push()
114 tablet_history_push(tablet, axes); in tablet_history_push()
429 x = tablet->axes.tilt.x; in convert_tilt_to_rotation()
430 y = tablet->axes.tilt.y; in convert_tilt_to_rotation()
438 tablet->axes.rotation = angle; in convert_tilt_to_rotation()
477 tablet->axes.point.x = value; in tablet_update_xy()
486 tablet->axes.point.y = value; in tablet_update_xy()
488 evdev_transform_absolute(device, &tablet->axes.point); in tablet_update_xy()
496 struct tablet_axes *axes, in tablet_tool_process_delta() argument
511 delta.x = axes->point.x - tablet->last_smooth_point.x; in tablet_tool_process_delta()
512 delta.y = axes->point.y - tablet->last_smooth_point.y; in tablet_tool_process_delta()
515 if (axes->point.x != tablet->last_smooth_point.x) in tablet_tool_process_delta()
517 if (axes->point.y != tablet->last_smooth_point.y) in tablet_tool_process_delta()
520 tablet->last_smooth_point = axes->point; in tablet_tool_process_delta()
544 tablet->axes.pressure = normalize_pressure(absinfo, tool); in tablet_update_pressure()
557 tablet->axes.distance = normalize_distance(absinfo); in tablet_update_distance()
570 tablet->axes.slider = normalize_slider(absinfo); in tablet_update_slider()
588 tablet->axes.tilt.x = adjust_tilt(absinfo); in tablet_update_tilt()
591 tablet->axes.tilt.y = adjust_tilt(absinfo); in tablet_update_tilt()
594 tablet->axes.tilt.x *= -1; in tablet_update_tilt()
595 tablet->axes.tilt.y *= -1; in tablet_update_tilt()
611 tablet->axes.rotation = convert_to_degrees(absinfo, 90); in tablet_update_artpen_rotation()
638 tablet->axes.tilt.x = 0; in tablet_update_rotation()
639 tablet->axes.tilt.y = 0; in tablet_update_rotation()
648 double r = tablet->axes.rotation; in tablet_update_rotation()
649 tablet->axes.rotation = fmod(180 + r, 360); in tablet_update_rotation()
663 tablet->axes.wheel = normalize_wheel(tablet, in tablet_update_wheel()
664 tablet->axes.wheel_discrete); in tablet_update_wheel()
666 tablet->axes.wheel = 0; in tablet_update_wheel()
667 tablet->axes.wheel_discrete = 0; in tablet_update_wheel()
673 struct tablet_axes *axes) in tablet_smoothen_axes() argument
689 axes->point.x = smooth.point.x/count; in tablet_smoothen_axes()
690 axes->point.y = smooth.point.y/count; in tablet_smoothen_axes()
692 axes->tilt.x = smooth.tilt.x/count; in tablet_smoothen_axes()
693 axes->tilt.y = smooth.tilt.y/count; in tablet_smoothen_axes()
703 struct tablet_axes axes = {0}; in tablet_check_notify_axes() local
708 axes = tablet->axes; in tablet_check_notify_axes()
722 axes.point = tablet->axes.point; in tablet_check_notify_axes()
723 axes.pressure = tablet->axes.pressure; in tablet_check_notify_axes()
724 axes.distance = tablet->axes.distance; in tablet_check_notify_axes()
725 axes.slider = tablet->axes.slider; in tablet_check_notify_axes()
726 axes.tilt = tablet->axes.tilt; in tablet_check_notify_axes()
727 axes.wheel = tablet->axes.wheel; in tablet_check_notify_axes()
728 axes.wheel_discrete = tablet->axes.wheel_discrete; in tablet_check_notify_axes()
729 axes.rotation = tablet->axes.rotation; in tablet_check_notify_axes()
742 tablet_history_push(tablet, &tablet->axes); in tablet_check_notify_axes()
743 tablet_smoothen_axes(tablet, &axes); in tablet_check_notify_axes()
746 axes.delta = tablet_tool_process_delta(tablet, tool, device, &axes, time); in tablet_check_notify_axes()
748 *axes_out = axes; in tablet_check_notify_axes()
873 tablet->axes.wheel_discrete = -1 * e->value; in tablet_process_relative()
938 WacomAxisTypeFlags axes; in tool_set_bits_from_libwacom() local
964 axes = libwacom_stylus_get_axes(s); in tool_set_bits_from_libwacom()
966 if (axes & WACOM_AXIS_TYPE_TILT) { in tool_set_bits_from_libwacom()
980 if (axes & WACOM_AXIS_TYPE_ROTATION_Z) in tool_set_bits_from_libwacom()
982 if (axes & WACOM_AXIS_TYPE_DISTANCE) in tool_set_bits_from_libwacom()
984 if (axes & WACOM_AXIS_TYPE_SLIDER) in tool_set_bits_from_libwacom()
986 if (axes & WACOM_AXIS_TYPE_PRESSURE) in tool_set_bits_from_libwacom()
1208 &tablet->axes, in tablet_notify_button_mask()
1265 tablet->axes.distance = 0; in sanitize_pressure_distance()
1269 tablet->axes.pressure = 0; in sanitize_pressure_distance()
1274 if (tablet->axes.pressure == 0) in sanitize_pressure_distance()
1278 tablet->axes.pressure = 0; in sanitize_pressure_distance()
1483 mm = evdev_device_units_to_mm(device, &tablet->axes.point); in tablet_calculate_arbitration_rect()
1493 if (tablet->axes.tilt.x > 0) { in tablet_calculate_arbitration_rect()
1519 const struct tablet_axes *axes, in tablet_update_touch_device_rect() argument
1543 struct tablet_axes *axes, in tablet_send_proximity_in() argument
1554 axes); in tablet_send_proximity_in()
1559 axes->delta.x = 0; in tablet_send_proximity_in()
1560 axes->delta.y = 0; in tablet_send_proximity_in()
1569 struct tablet_axes *axes, in tablet_send_proximity_out() argument
1580 axes); in tablet_send_proximity_out()
1586 axes->delta.x = 0; in tablet_send_proximity_out()
1587 axes->delta.y = 0; in tablet_send_proximity_out()
1596 struct tablet_axes *axes, in tablet_send_tip() argument
1605 axes); in tablet_send_tip()
1611 axes->delta.x = 0; in tablet_send_tip()
1612 axes->delta.y = 0; in tablet_send_tip()
1623 axes); in tablet_send_tip()
1629 axes->delta.x = 0; in tablet_send_tip()
1630 axes->delta.y = 0; in tablet_send_tip()
1642 struct tablet_axes *axes, in tablet_send_axes() argument
1661 axes); in tablet_send_axes()
1664 axes->delta.x = 0; in tablet_send_axes()
1665 axes->delta.y = 0; in tablet_send_axes()
1699 struct tablet_axes axes = {0}; in tablet_send_events() local
1706 axes = tablet->axes; in tablet_send_events()
1712 if (tablet_check_notify_axes(tablet, device, tool, &axes, time)) in tablet_send_events()
1713 tablet_update_touch_device_rect(tablet, &axes, time); in tablet_send_events()
1716 assert(tablet->axes.delta.x == 0); in tablet_send_events()
1717 assert(tablet->axes.delta.y == 0); in tablet_send_events()
1719 tablet_send_proximity_in(tablet, tool, device, &axes, time); in tablet_send_events()
1720 if (!tablet_send_tip(tablet, tool, device, &axes, time)) in tablet_send_events()
1721 tablet_send_axes(tablet, tool, device, &axes, time); in tablet_send_events()
1728 if (tablet_send_proximity_out(tablet, tool, device, &axes, time)) { in tablet_send_events()
1960 } else if (tablet->axes.tilt.x == 0) { in tablet_toggle_touch_device()