Lines Matching refs:xwl_tablet_tool

1508     struct xwl_tablet_tool *xwl_tablet_tool = data;  in tablet_tool_receive_type()  local
1509 struct xwl_seat *xwl_seat = xwl_tablet_tool->seat; in tablet_tool_receive_type()
1513 xwl_tablet_tool->xdevice = xwl_seat->eraser; in tablet_tool_receive_type()
1517 xwl_tablet_tool->xdevice = xwl_seat->puck; in tablet_tool_receive_type()
1520 xwl_tablet_tool->xdevice = xwl_seat->stylus; in tablet_tool_receive_type()
1551 struct xwl_tablet_tool *xwl_tablet_tool = data; in tablet_tool_receive_removed() local
1553 xorg_list_del(&xwl_tablet_tool->link); in tablet_tool_receive_removed()
1554 xwl_cursor_release(&xwl_tablet_tool->cursor); in tablet_tool_receive_removed()
1556 free(xwl_tablet_tool); in tablet_tool_receive_removed()
1564 struct xwl_tablet_tool *xwl_tablet_tool = data; in tablet_tool_proximity_in() local
1565 struct xwl_seat *xwl_seat = xwl_tablet_tool->seat; in tablet_tool_proximity_in()
1578 xwl_tablet_tool->proximity_in_serial = serial; in tablet_tool_proximity_in()
1581 xwl_tablet_tool_set_cursor(xwl_tablet_tool); in tablet_tool_proximity_in()
1587 struct xwl_tablet_tool *xwl_tablet_tool = data; in tablet_tool_proximity_out() local
1588 struct xwl_seat *xwl_seat = xwl_tablet_tool->seat; in tablet_tool_proximity_out()
1590 xwl_tablet_tool->proximity_in_serial = 0; in tablet_tool_proximity_out()
1593 xwl_tablet_tool->pressure = 0; in tablet_tool_proximity_out()
1594 xwl_tablet_tool->tilt_x = 0; in tablet_tool_proximity_out()
1595 xwl_tablet_tool->tilt_y = 0; in tablet_tool_proximity_out()
1596 xwl_tablet_tool->rotation = 0; in tablet_tool_proximity_out()
1597 xwl_tablet_tool->slider = 0; in tablet_tool_proximity_out()
1603 struct xwl_tablet_tool *xwl_tablet_tool = data; in tablet_tool_down() local
1604 struct xwl_seat *xwl_seat = xwl_tablet_tool->seat; in tablet_tool_down()
1610 QueuePointerEvents(xwl_tablet_tool->xdevice, ButtonPress, 1, 0, &mask); in tablet_tool_down()
1616 struct xwl_tablet_tool *xwl_tablet_tool = data; in tablet_tool_up() local
1620 QueuePointerEvents(xwl_tablet_tool->xdevice, ButtonRelease, 1, 0, &mask); in tablet_tool_up()
1627 struct xwl_tablet_tool *xwl_tablet_tool = data; in tablet_tool_motion() local
1628 struct xwl_seat *xwl_seat = xwl_tablet_tool->seat; in tablet_tool_motion()
1639 xwl_tablet_tool->x = (double) dx + sx; in tablet_tool_motion()
1640 xwl_tablet_tool->y = (double) dy + sy; in tablet_tool_motion()
1647 struct xwl_tablet_tool *xwl_tablet_tool = data; in tablet_tool_pressure() local
1648 struct xwl_seat *xwl_seat = xwl_tablet_tool->seat; in tablet_tool_pressure()
1654 xwl_tablet_tool->pressure = pressure; in tablet_tool_pressure()
1667 struct xwl_tablet_tool *xwl_tablet_tool = data; in tablet_tool_tilt() local
1668 struct xwl_seat *xwl_seat = xwl_tablet_tool->seat; in tablet_tool_tilt()
1673 xwl_tablet_tool->tilt_x = wl_fixed_to_double(tilt_x); in tablet_tool_tilt()
1674 xwl_tablet_tool->tilt_y = wl_fixed_to_double(tilt_y); in tablet_tool_tilt()
1681 struct xwl_tablet_tool *xwl_tablet_tool = data; in tablet_tool_rotation() local
1682 struct xwl_seat *xwl_seat = xwl_tablet_tool->seat; in tablet_tool_rotation()
1693 xwl_tablet_tool->rotation = rotation; in tablet_tool_rotation()
1700 struct xwl_tablet_tool *xwl_tablet_tool = data; in tablet_tool_slider() local
1701 struct xwl_seat *xwl_seat = xwl_tablet_tool->seat; in tablet_tool_slider()
1707 xwl_tablet_tool->slider = (position * 1799.0f) - 900.0f; in tablet_tool_slider()
1714 struct xwl_tablet_tool *xwl_tablet_tool = data; in tablet_tool_wheel() local
1715 struct xwl_seat *xwl_seat = xwl_tablet_tool->seat; in tablet_tool_wheel()
1720 xwl_tablet_tool->wheel_clicks = clicks; in tablet_tool_wheel()
1727 struct xwl_tablet_tool *xwl_tablet_tool = data; in tablet_tool_button_state() local
1728 struct xwl_seat *xwl_seat = xwl_tablet_tool->seat; in tablet_tool_button_state()
1729 uint32_t *mask = &xwl_tablet_tool->buttons_now; in tablet_tool_button_state()
1792 struct xwl_tablet_tool *xwl_tablet_tool = data; in tablet_tool_frame() local
1798 valuator_mask_set_double(&mask, 0, xwl_tablet_tool->x); in tablet_tool_frame()
1799 valuator_mask_set_double(&mask, 1, xwl_tablet_tool->y); in tablet_tool_frame()
1800 valuator_mask_set(&mask, 2, xwl_tablet_tool->pressure); in tablet_tool_frame()
1801 valuator_mask_set_double(&mask, 3, xwl_tablet_tool->tilt_x); in tablet_tool_frame()
1802 valuator_mask_set_double(&mask, 4, xwl_tablet_tool->tilt_y); in tablet_tool_frame()
1803 valuator_mask_set_double(&mask, 5, xwl_tablet_tool->rotation + xwl_tablet_tool->slider); in tablet_tool_frame()
1805 QueuePointerEvents(xwl_tablet_tool->xdevice, MotionNotify, 0, in tablet_tool_frame()
1810 diff = xwl_tablet_tool->buttons_prev ^ xwl_tablet_tool->buttons_now; in tablet_tool_frame()
1811 released = diff & ~xwl_tablet_tool->buttons_now; in tablet_tool_frame()
1812 pressed = diff & xwl_tablet_tool->buttons_now; in tablet_tool_frame()
1817 QueuePointerEvents(xwl_tablet_tool->xdevice, in tablet_tool_frame()
1826 QueuePointerEvents(xwl_tablet_tool->xdevice, in tablet_tool_frame()
1832 xwl_tablet_tool->buttons_prev = xwl_tablet_tool->buttons_now; in tablet_tool_frame()
1834 while (xwl_tablet_tool->wheel_clicks) { in tablet_tool_frame()
1835 if (xwl_tablet_tool->wheel_clicks < 0) { in tablet_tool_frame()
1837 xwl_tablet_tool->wheel_clicks++; in tablet_tool_frame()
1841 xwl_tablet_tool->wheel_clicks--; in tablet_tool_frame()
1844 QueuePointerEvents(xwl_tablet_tool->xdevice, in tablet_tool_frame()
1846 QueuePointerEvents(xwl_tablet_tool->xdevice, in tablet_tool_frame()
2311 struct xwl_tablet_tool *xwl_tablet_tool = wl_container_of(xwl_cursor, in xwl_tablet_tool_update_cursor() local
2312 xwl_tablet_tool, in xwl_tablet_tool_update_cursor()
2314 xwl_tablet_tool_set_cursor(xwl_tablet_tool); in xwl_tablet_tool_update_cursor()
2323 struct xwl_tablet_tool *xwl_tablet_tool; in tablet_seat_handle_add_tool() local
2325 xwl_tablet_tool = calloc(sizeof *xwl_tablet_tool, 1); in tablet_seat_handle_add_tool()
2326 if (xwl_tablet_tool == NULL) { in tablet_seat_handle_add_tool()
2331 xwl_tablet_tool->tool = tool; in tablet_seat_handle_add_tool()
2332 xwl_tablet_tool->seat = xwl_seat; in tablet_seat_handle_add_tool()
2333 xwl_cursor_init(&xwl_tablet_tool->cursor, xwl_screen, in tablet_seat_handle_add_tool()
2336 xorg_list_add(&xwl_tablet_tool->link, &xwl_seat->tablet_tools); in tablet_seat_handle_add_tool()
2338 zwp_tablet_tool_v2_add_listener(tool, &tablet_tool_listener, xwl_tablet_tool); in tablet_seat_handle_add_tool()
2392 struct xwl_tablet_tool *xwl_tablet_tool, *next_xwl_tablet_tool; in release_tablet_manager_seat() local
2402 xorg_list_for_each_entry_safe(xwl_tablet_tool, next_xwl_tablet_tool, in release_tablet_manager_seat()
2404 xorg_list_del(&xwl_tablet_tool->link); in release_tablet_manager_seat()
2405 zwp_tablet_tool_v2_destroy(xwl_tablet_tool->tool); in release_tablet_manager_seat()
2406 free(xwl_tablet_tool); in release_tablet_manager_seat()