Function input_sys::libinput_event_pointer_has_axis [] [src]

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

@ingroup event_pointer

Check if the event has a valid value for the given axis.

If this function returns non-zero for an axis and libinput_event_pointer_get_axis_value() returns a value of 0, the event is a scroll stop event.

For pointer events that are not of type @ref LIBINPUT_EVENT_POINTER_AXIS, this function returns 0.

@note It is an application bug to call this function for events other than @ref LIBINPUT_EVENT_POINTER_AXIS.

@return Non-zero if this event contains a value for this axis