pub enum StreamDeckInput {
NoData,
ButtonStateChange(Vec<bool>),
EncoderStateChange(Vec<bool>),
EncoderTwist(Vec<i8>),
TouchScreenPress(u16, u16),
TouchScreenLongPress(u16, u16),
TouchScreenSwipe((u16, u16), (u16, u16)),
}Expand description
Type of input that the device produced
Variants§
NoData
No data was passed from the device
ButtonStateChange(Vec<bool>)
Button was pressed
EncoderStateChange(Vec<bool>)
Encoder/Knob was pressed
EncoderTwist(Vec<i8>)
Encoder/Knob was twisted/turned
TouchScreenPress(u16, u16)
Touch screen received short press
TouchScreenLongPress(u16, u16)
Touch screen received long press
TouchScreenSwipe((u16, u16), (u16, u16))
Touch screen received a swipe
Implementations§
Trait Implementations§
source§impl Clone for StreamDeckInput
impl Clone for StreamDeckInput
source§fn clone(&self) -> StreamDeckInput
fn clone(&self) -> StreamDeckInput
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 moreAuto Trait Implementations§
impl RefUnwindSafe for StreamDeckInput
impl Send for StreamDeckInput
impl Sync for StreamDeckInput
impl Unpin for StreamDeckInput
impl UnwindSafe for StreamDeckInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more