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