pub(crate) fn to_raw(self) -> (i32, i32, i32) {
        use ActionValueChange::*;
        match self {
            AbsoluteLowRes(v) => (i32::from(v), -1, 0),
            AbsoluteHighRes(v) => {
                (
                    // val (most significant)
                    ((u32::from(v) >> 7) & 0x7f) as i32,
                    // valhw (least significant)
                    (u32::from(v) & 0x7f) as i32,
                    // relmode
                    0,
                )
            }
            Relative1(v) => (i32::from(v), -1, 1),
            Relative2(v) => (i32::from(v), -1, 2),
            Relative3(v) => (i32::from(v), -1, 3),
            Unknown(Hidden((a, b, c))) => (a, b, c),
        }
    }
/// Converts this value to the (val, valhw, relmode) triple expected by the low-level API.
Converts this value to the (val, valhw, relmode) triple expected by the low-level API.
Converts this value to the ( val valhw relmode ) triple expected by the low - level API .
pub(crate) fn to_raw(self) -> (i32, i32, i32) {
        use ActionValueChange::*;
        match self {
            AbsoluteLowRes(v) => (i32::from(v), -1, 0),
            AbsoluteHighRes(v) => {
                (
                    // val (most significant)
                    ((u32::from(v) >> 7) & 0x7f) as i32,
                    // valhw (least significant)
                    (u32::from(v) & 0x7f) as i32,
                    // relmode
                    0,
                )
            }
            Relative1(v) => (i32::from(v), -1, 1),
            Relative2(v) => (i32::from(v), -1, 2),
            Relative3(v) => (i32::from(v), -1, 3),
            Unknown(Hidden((a, b, c))) => (a, b, c),
        }
    }
pub ( crate ) fn to_raw ( self ) -> ( i32 , i32 , i32 ) { use ActionValueChange :: * ; match self { AbsoluteLowRes ( v ) => ( i32 :: from ( v ) , - 1 , 0 ) , AbsoluteHighRes ( v ) => { ( // val (most significant) ( ( u32 :: from ( v ) >> 7 ) & 0x7f ) as i32 , // valhw (least significant) ( u32 :: from ( v ) & 0x7f ) as i32 , // relmode 0 , ) } Relative1 ( v ) => ( i32 :: from ( v ) , - 1 , 1 ) , Relative2 ( v ) => ( i32 :: from ( v ) , - 1 , 2 ) , Relative3 ( v ) => ( i32 :: from ( v ) , - 1 , 3 ) , Unknown ( Hidden ( ( a , b , c ) ) ) => ( a , b , c ) , } }
Converts this value to the (val, valhw, relmode) triple expected by the low-level API.
Converts this value to the ( val valhw relmode ) triple expected by the low - level API .
self
self