Transparent axis/button IDs

This commit is contained in:
Benjamin Saunders 2017-07-01 02:20:13 -07:00
parent e196f80e98
commit 3d9e8da9ec
3 changed files with 11 additions and 13 deletions

View file

@ -1,5 +1,5 @@
use std::path::PathBuf;
use {WindowId, DeviceId, AxisId, ButtonId};
use {WindowId, DeviceId};
#[derive(Clone, Debug)]
pub enum Event {
@ -157,6 +157,12 @@ pub struct Touch {
pub type ScanCode = u32;
/// Identifier for a specific analog axis on some device.
pub type AxisId = u32;
/// Identifier for a specific button on some device.
pub type ButtonId = u32;
#[derive(Debug, Hash, PartialEq, Eq, Clone, Copy)]
pub enum ElementState {
Pressed,