Enum kll_core::CapabilityEvent
source · #[repr(u8)]
pub enum CapabilityEvent {
None,
Initial,
Last,
Any,
Passthrough(TriggerEvent),
}Expand description
CapabilityEvent After voting with the indicated TriggerConditions, the CapabilityEvent is used by the Result capabilities to evaluate a generic decision. Mirrors CapabilityState, except that Passthrough contains the TriggerEvent to pass through to the corresponding Capability (see ResultGuide). If passthrough has been specified the final element of the last combo will be sent instead
Variants§
None
Invalid, ignore this event
Initial
Initial state (e.g. press)
Last
Last state (e.g. release)
Any
Any activation (Initial+Last)
Passthrough(TriggerEvent)
TriggerEvent passthrough
Trait Implementations§
source§impl Clone for CapabilityEvent
impl Clone for CapabilityEvent
source§fn clone(&self) -> CapabilityEvent
fn clone(&self) -> CapabilityEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more