Function input_sys::libinput_event_switch_get_switch_state[][src]

pub unsafe extern "C" fn libinput_event_switch_get_switch_state(
    event: *mut libinput_event_switch
) -> libinput_switch_state
Expand description

@ingroup event_switch

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

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

@param event The libinput switch event @return The switch state triggering this event

@since 1.7