Enum kll_core::CapabilityState
source · #[repr(u8)]
pub enum CapabilityState {
None,
Initial,
Last,
Any,
Passthrough,
}Expand description
CapabilityState After voting with the indicated TriggerConditions, the CapabilityState is used by the Result capabilities to evaluate a generic decision. This mirrors CapabilityEvent, except that the Passthrough event is not stored as it is not known at compile time. 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
Event passthrough
Implementations§
source§impl CapabilityState
impl CapabilityState
sourcepub fn event(&self, event: TriggerEvent) -> CapabilityEvent
pub fn event(&self, event: TriggerEvent) -> CapabilityEvent
Using a CapabilityState and TriggerEvent, generate a CapabilityEvent
Trait Implementations§
source§impl Clone for CapabilityState
impl Clone for CapabilityState
source§fn clone(&self) -> CapabilityState
fn clone(&self) -> CapabilityState
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