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
Enabled
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.
Disabled
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.
DisabledOnExternalMouse
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]
impl Copy for SendEventsMode
[src]
impl Clone for SendEventsMode
[src]
fn clone(&self) -> SendEventsMode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for SendEventsMode
[src]
fn eq(&self, __arg_0: &SendEventsMode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.