pub unsafe extern "C" fn libinput_event_pointer_get_axis_value_discrete(
    event: *mut libinput_event_pointer,
    axis: libinput_pointer_axis
) -> f64
Expand description

@ingroup event_pointer

Return the axis value in discrete steps for a given axis event. How a value translates into a discrete step depends on the source.

@note This function does not support high-resolution mouse wheels and should be considered deprecated as of libinput 1.19. Callers should use @ref LIBINPUT_EVENT_POINTER_SCROLL_WHEEL and libinput_event_pointer_get_scroll_value_v120() instead.

If the event is not of type @ref LIBINPUT_EVENT_POINTER_AXIS, this function returns 0.

If the source is @ref LIBINPUT_POINTER_AXIS_SOURCE_WHEEL, the discrete value correspond to the number of physical mouse wheel clicks.

If the source is @ref LIBINPUT_POINTER_AXIS_SOURCE_CONTINUOUS or @ref LIBINPUT_POINTER_AXIS_SOURCE_FINGER, the discrete value is always 0.

@return The discrete value for the given event.

@see libinput_event_pointer_get_axis_value @see libinput_event_pointer_get_scroll_value_v120