#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
pub enum EAppGamepadGyroTrackpadSupportLevel {
    Unknown = -1,
    NoGamepad = 0,
    Gamepad = 1,
    Simultaneous = 2,
}

impl EAppGamepadGyroTrackpadSupportLevel {
    pub fn from_i32(val: i32) -> Option<Self> {
        match val {
            x if x == Self::Unknown as i32 => Some(Self::Unknown),
            x if x == Self::NoGamepad as i32 => Some(Self::NoGamepad),
            x if x == Self::Gamepad as i32 => Some(Self::Gamepad),
            x if x == Self::Simultaneous as i32 => Some(Self::Simultaneous),
            _ => None,
        }
    }
}
