mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-18 01:46:41 +01:00
src -> app; move core libs to tengri
This commit is contained in:
parent
8465d64807
commit
bcc3f5809e
113 changed files with 132 additions and 5729 deletions
12
app/src/keys_ins.rs
Normal file
12
app/src/keys_ins.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
use crate::*;
|
||||
#[derive(Clone, Debug)] pub enum InputCommand { Add }
|
||||
atom_command!(InputCommand: |app: Tek| {
|
||||
("add" [] Some(Self::Add))
|
||||
});
|
||||
command!(|self: InputCommand, app: Tek|match self {
|
||||
Self::Add => {
|
||||
app.midi_ins.push(JackMidiIn::new(&app.jack, &format!("M/{}", app.midi_ins.len()), &[])?);
|
||||
app.redraw_arranger();
|
||||
None
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue