[−][src]Enum monome::MonomeEvent
An event received from a monome device. This can be either a key press or release, a tilt event, an encoder rotation event, or an encoder press or release.
Variants
GridKey
A key press or release
Fields of GridKey
x: i32
The horizontal offset at which the key has been pressed.
y: i32
The vertical offset at which the key has been pressed.
direction: KeyDirection
Whether the key has been pressed (Down
), or released (Up
).
Tilt
A update about the tilt of this device.
Fields of Tilt
EncoderDelta
An encoder delta information
Fields of EncoderDelta
EncoderKey
A key press on an encoder (only available on some older devices).
Fields of EncoderKey
n: usize
Which encoder is sending the event.
direction: KeyDirection
Whether the encoder key has been pressed (Down
), or released (Up
).
Auto Trait Implementations
impl Send for MonomeEvent
impl Unpin for MonomeEvent
impl Sync for MonomeEvent
impl RefUnwindSafe for MonomeEvent
impl UnwindSafe for MonomeEvent
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,