euv_engine/input/enum.rs
1/// Represents a standard mouse button identifier.
2#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
3pub enum MouseButton {
4 /// The left mouse button (button 0).
5 #[default]
6 Left,
7 /// The middle mouse button / scroll wheel click (button 1).
8 Middle,
9 /// The right mouse button (button 2).
10 Right,
11 /// Mouse button 3 (browser back).
12 Button4,
13 /// Mouse button 4 (browser forward).
14 Button5,
15}
16
17/// Represents a high-level input action category.
18#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
19pub enum InputAction {
20 /// The key or button was pressed during this frame.
21 #[default]
22 Pressed,
23 /// The key or button is currently held down.
24 Held,
25 /// The key or button was released during this frame.
26 Released,
27 /// The key or button is currently idle (not pressed).
28 Idle,
29}