Function input_sys::libinput_event_pointer_get_button_state[][src]

pub unsafe extern "C" fn libinput_event_pointer_get_button_state(
    event: *mut libinput_event_pointer
) -> libinput_button_state
Expand description

@ingroup event_pointer

Return the button state that triggered this event. For pointer events that are not of type @ref LIBINPUT_EVENT_POINTER_BUTTON, this function returns 0.

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

@return The button state triggering this event