[][src]Function input_sys::libinput_event_pointer_get_axis_value_discrete

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

@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.

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