Transparent axis/button IDs
This commit is contained in:
parent
e196f80e98
commit
3d9e8da9ec
3 changed files with 11 additions and 13 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue