Skip to content

Commit 4cbc5ea

Browse files
committed
Make config sections for touch and release work
1 parent e22f729 commit 4cbc5ea

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,18 @@ fn main() -> () {
6868
execute_commands(commands, &x11_handler, debug_enabled);
6969
};
7070
}
71+
StateChanges::CrownTouched {modifiers} => {
72+
let modifiers = Modifier::from(modifiers);
73+
if let (_, Some(commands)) = config.get_mapping_for_modifiers(modifiers) {
74+
execute_commands(&commands.touch, &x11_handler, debug_enabled);
75+
}
76+
}
77+
StateChanges::CrownReleased {modifiers} => {
78+
let modifiers = Modifier::from(modifiers);
79+
if let (_, Some(commands)) = config.get_mapping_for_modifiers(modifiers) {
80+
execute_commands(&commands.release, &x11_handler, debug_enabled);
81+
}
82+
}
7183
StateChanges::CrownClicked { modifiers } => {
7284
let modifiers = Modifier::from(modifiers);
7385
if let (_, Some(commands)) = config.get_mapping_for_modifiers(modifiers) {

0 commit comments

Comments
 (0)