Skip to main content

dualsense_tools/state/
hat.rs

1/// Represents the direction of the hat of a Dualsense controller
2#[derive(Clone, Copy, Debug, Default, Eq, PartialEq, Hash)]
3pub enum HatDirection {
4    Up,
5    UpRight,
6    Right,
7    DownRight,
8    Down,
9    DownLeft,
10    Left,
11    UpLeft,
12    #[default]
13    Neutral,
14}