Enum monome::MonomeEvent[][src]

pub enum MonomeEvent {
    GridKey {
        x: i32,
        y: i32,
        direction: KeyDirection,
    },
    Tilt {
        n: i32,
        x: i32,
        y: i32,
        z: i32,
    },
    EncoderDelta {
        n: usize,
        delta: i32,
    },
    EncoderKey {
        n: usize,
        direction: KeyDirection,
    },
}
Expand description

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

Fields

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 key press or release

Tilt

Fields

n: i32

Which sensor sent this tilt update.

x: i32

The pitch of this device.

y: i32

The roll of this device.

z: i32

The yaw of this device.

A update about the tilt of this device.

EncoderDelta

Fields

n: usize

Which encoder is sending the event.

delta: i32

The delta of this movement on this encoder.

An encoder delta information

EncoderKey

Fields

n: usize

Which encoder is sending the event.

direction: KeyDirection

Whether the encoder key has been pressed (Down), or released (Up).

A key press on an encoder (only available on some older devices).

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.