dinput/
pointer.rs

1// Copyright (c) 2017, Marty Mills <daggerbot@gmail.com>
2// This software is available under the terms of the zlib license.
3// See COPYING.md for more information.
4
5/// Pointer button enumeration.
6#[derive(Clone, Copy, Debug, Eq, PartialEq)]
7pub enum Button {
8    Left,
9    Right,
10    Middle,
11    Back,
12    Forward,
13}
14
15/// Pointer button signal.
16#[derive(Clone, Copy, Debug, Eq, PartialEq)]
17pub enum ButtonState {
18    Up,
19    Down,
20}
21
22/// State of a pointer relative to a region.
23#[derive(Clone, Copy, Debug, Eq, PartialEq)]
24pub enum MotionState {
25    Enter,
26    Move,
27    Leave,
28}
29
30/// Mouse wheel direction.
31#[derive(Clone, Copy, Debug, Eq, PartialEq)]
32pub enum WheelDir {
33    Up,
34    Down,
35}