[−][src]Struct lp_tetris::Launchpad
Methods
impl Launchpad
[src]
pub fn new() -> Launchpad
[src]
Finds a launchpad and returns it. Handles finding the port as well as connecting to it. Panics if a launchpad is not found.
pub fn close(self)
[src]
Closes the underlying midi connection to the launchpad
impl Launchpad
[src]
pub fn send_sysex(&mut self, msg_type: u8, data: &[u8])
[src]
pub fn clear(&mut self)
[src]
pub fn send_note(&mut self, note: u8, velocity: u8)
[src]
pub fn send_matrix(&mut self, matrix: Array2D<u8>)
[src]
impl Launchpad
[src]
pub fn poll_input(&self) -> Option<ControlEvent>
[src]
Get next ControlEvent
Auto Trait Implementations
impl !RefUnwindSafe for Launchpad
impl Send for Launchpad
impl !Sync for Launchpad
impl Unpin for Launchpad
impl !UnwindSafe for Launchpad
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>,