steam_enums/
estreammousewheeldirection.rs1#![allow(non_camel_case_types)]
2#![allow(non_upper_case_globals)]
3#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
4#[repr(i32)]
5pub enum EStreamMouseWheelDirection {
6 Down = -120,
7 Left = 3,
8 Right = 4,
9 Up = 120,
10}
11
12impl EStreamMouseWheelDirection {
13 pub fn from_i32(val: i32) -> Option<Self> {
14 match val {
15 x if x == Self::Down as i32 => Some(Self::Down),
16 x if x == Self::Left as i32 => Some(Self::Left),
17 x if x == Self::Right as i32 => Some(Self::Right),
18 x if x == Self::Up as i32 => Some(Self::Up),
19 _ => None,
20 }
21 }
22}