Function libinput_event_tablet_tool_get_rotation
pub unsafe extern "C" fn libinput_event_tablet_tool_get_rotation(
event: *mut libinput_event_tablet_tool,
) -> f64
Expand description
@ingroup event_tablet
Returns the current z rotation of the tool in degrees, clockwise from the tool’s logical neutral position.
For tools of type @ref LIBINPUT_TABLET_TOOL_TYPE_MOUSE and @ref LIBINPUT_TABLET_TOOL_TYPE_LENS the logical neutral position is pointing to the current logical north of the tablet. For tools of type @ref LIBINPUT_TABLET_TOOL_TYPE_BRUSH, the logical neutral position is with the buttons pointing up.
If this axis does not exist on the current tool, this function returns 0.
@param event The libinput tablet tool event @return The current value of the the axis
@since 1.2