Type Alias libinput_switch_state

pub type libinput_switch_state = u32;
Expand description

@ingroup device

The state of a switch. The default state of a switch is @ref LIBINPUT_SWITCH_STATE_OFF and no event is sent to confirm a switch in the off position. If a switch is logically on during initialization, libinput sends an event of type @ref LIBINPUT_EVENT_SWITCH_TOGGLE with a state @ref LIBINPUT_SWITCH_STATE_ON.

@since 1.7