mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-10-08 18:56:42 +02:00
more shuffling; testing dispatch
This commit is contained in:
parent
56df5c5b78
commit
02dc7bc9f8
12 changed files with 1339 additions and 1359 deletions
|
|
@ -1600,3 +1600,17 @@
|
|||
//fn _clip_index_next (&self) -> usize { 0 }
|
||||
//fn _color_random (&self) -> ItemColor { ItemColor::random() }
|
||||
//}
|
||||
|
||||
//pub fn load_axis_bind (name: &str, body: impl Language) -> Usually<Self> {
|
||||
//let mut bind: Bind<TuiEvent, Arc<str>> = Bind::new();
|
||||
//body.each(0, |index, key: &str|if index == 0 {
|
||||
//bind.add_def(&format!("({key} (axis (dec {name})))"))?;
|
||||
//Ok(1)
|
||||
//} else if index == 1 {
|
||||
//bind.add_def(&format!("({key} (axis (inc {name})))"))?;
|
||||
//Ok(2)
|
||||
//} else {
|
||||
//err!("top-level (axis) takes 2 keysyms: dec and inc")
|
||||
//})?;
|
||||
//Ok(bind)
|
||||
//}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue