Merge pull request #211 from Ralith/transparent-ids
Transparent axis/button IDs
This commit is contained in:
commit
2e079fe9a2
3 changed files with 11 additions and 13 deletions
|
|
@ -168,14 +168,6 @@ pub struct WindowId(platform::WindowId);
|
|||
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub struct DeviceId(platform::DeviceId);
|
||||
|
||||
/// Identifier for a specific analog axis on some device.
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub struct AxisId(u32);
|
||||
|
||||
/// Identifier for a specific button on some device.
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub struct ButtonId(u32);
|
||||
|
||||
/// Provides a way to retreive events from the windows that were registered to it.
|
||||
///
|
||||
/// To wake up an `EventsLoop` from a another thread, see the `EventsLoopProxy` docs.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue