limnus_basic_input/
button.rs

1/*
2 * Copyright (c) Peter Bjorklund. All rights reserved. https://github.com/swamp/limnus
3 * Licensed under the MIT License. See LICENSE in the project root for license information.
4 */
5use int_math::Vec2;
6
7#[derive(Debug, Hash, Clone, Copy, Eq, PartialEq)]
8pub enum ButtonState {
9    Pressed,
10    Released,
11}
12
13#[derive(Debug, Hash, Clone, Copy, Eq, PartialEq)]
14pub enum MouseScrollDelta {
15    LineDelta(Vec2),
16    PixelDelta(Vec2),
17}
18
19#[derive(Debug, Hash, PartialEq, Eq, Clone, Copy)]
20pub enum TouchPhase {
21    Started,
22    Moved,
23    Ended,
24    Cancelled,
25}
26
27#[derive(Debug, Hash, Clone, Copy, Eq, PartialEq)]
28pub enum MouseButton {
29    Left,
30    Right,
31    Middle,
32    Back,
33    Forward,
34}