[−][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
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
).
A update about the tilt of this device.
Fields of Tilt
An encoder delta information
Fields of EncoderDelta
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 RefUnwindSafe for MonomeEvent
impl Send for MonomeEvent
impl Sync for MonomeEvent
impl Unpin for MonomeEvent
impl UnwindSafe for MonomeEvent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,