pub struct KeyEvent {
pub key: MidiNote,
pub value: u8,
}
Expand description
Parameters of a key related event
This include note on and off and poly key pressure Value is velocity for notes and pressure amount for pressure events.
Fields§
§key: MidiNote
The note to which this applies
value: u8
The velocity for notes or pressure value for pressure.
Trait Implementations§
impl Eq for KeyEvent
impl StructuralPartialEq for KeyEvent
Auto Trait Implementations§
impl Freeze for KeyEvent
impl RefUnwindSafe for KeyEvent
impl Send for KeyEvent
impl Sync for KeyEvent
impl Unpin for KeyEvent
impl UnwindSafe for KeyEvent
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