Enum input::SendEventsMode [] [src]

pub enum SendEventsMode {
    Enabled,
    Disabled,
    DisabledOnExternalMouse,
}

The send-event mode of a device defines when a device may generate events and pass those events to the caller.

Variants

Send events from this device normally.

This is a placeholder mode only, any device detected by libinput can be enabled. Do not test for this value as bitmask.

Do not send events through this device.

Depending on the device, this may close all file descriptors on the device or it may leave the file descriptors open and route events through a different device.

If this mode is set, other disable modes may be ignored. For example, if both Disabled and DisabledOnExternalMouse are set, the device remains disabled when all external pointer devices are unplugged.

If an external pointer device is plugged in, do not send events from this device.

This option may be available on built-in touchpads.

Trait Implementations

impl Debug for SendEventsMode
[src]

Formats the value using the given formatter.

impl Copy for SendEventsMode
[src]

impl Clone for SendEventsMode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for SendEventsMode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for SendEventsMode
[src]

impl Hash for SendEventsMode
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more