launchkey_sdk/launchkey/modes/fader_mode.rs
1use crate::bidirectional_enum_mappings;
2
3#[derive(Debug, Clone)]
4pub enum FaderMode {
5 /// Controls track volume levels.
6 Volume,
7 /// User-defined fader mappings (slot 1).
8 Custom1,
9 /// User-defined fader mappings (slot 2).
10 Custom2,
11 /// User-defined fader mappings (slot 3).
12 Custom3,
13 /// User-defined fader mappings (slot 4).
14 Custom4,
15}
16
17bidirectional_enum_mappings!(FaderMode, u8, {
18 Volume => 0x01,
19 Custom1 => 0x06,
20 Custom2 => 0x07,
21 Custom3 => 0x08,
22 Custom4 => 0x09,
23});