mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 12:46:42 +01:00
modularize keymaps
This commit is contained in:
parent
d8c9abf744
commit
876d26e287
8 changed files with 235 additions and 275 deletions
|
|
@ -27,6 +27,11 @@ use crossterm::terminal::{
|
|||
($($name:ident)*) => { $(mod $name; pub use self::$name::*;)* };
|
||||
}
|
||||
|
||||
/// Define and reexport public modules.
|
||||
#[macro_export] macro_rules! pubmod {
|
||||
($($name:ident)*) => { $(pub mod $name;)* };
|
||||
}
|
||||
|
||||
submod!( handle midi render time );
|
||||
|
||||
/// Standard result type.
|
||||
|
|
@ -55,7 +60,7 @@ pub trait Device: Render + Handle + Process + Send + Sync {
|
|||
impl<T: Render + Handle + Process + Send + Sync> Device for T {}
|
||||
|
||||
// Reexport macros:
|
||||
pub use crate::{submod, render, handle, process, phrase, keymap, key, ports};
|
||||
pub use crate::{submod, pubmod, render, handle, process, phrase, keymap, key, ports};
|
||||
|
||||
// Reexport JACK proto-lib:
|
||||
pub use crate::jack::*;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue