ramidier 0.2.0

Akai Pro Apc key 25 abstraction layer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use num_enum::TryFromPrimitive;

#[derive(Debug, Copy, Clone, TryFromPrimitive)]
#[repr(u8)]
pub enum SoftKey {
    ClipStop = 82,
    Solo = 83,
    Mute = 84,
    RecArm = 85,
    Select = 86,
}

impl From<SoftKey> for u8 {
    fn from(key: SoftKey) -> Self {
        key as Self
    }
}