Struct piston::ControllerButton [−][src]
Components of a controller button event. Not guaranteed consistent across backends.
Fields
id: u32
Which controller was the button on.
Which button was pressed.
Implementations
impl ControllerButton
[src][−]
pub fn new(id: u32, button: u8) -> ControllerButton
[src][−]
Create a new ControllerButton object. Intended for use by backends when emitting events.
Trait Implementations
impl Clone for ControllerButton
[src][+]
impl Copy for ControllerButton
[src]
impl Debug for ControllerButton
[src][+]
impl<'de> Deserialize<'de> for ControllerButton
[src][+]
impl Eq for ControllerButton
[src]
impl From<ControllerButton> for Button
[src][+]
impl Hash for ControllerButton
[src][+]
impl Ord for ControllerButton
[src][+]
impl PartialEq<ControllerButton> for ControllerButton
[src][+]
impl PartialOrd<ControllerButton> for ControllerButton
[src][+]
impl Serialize for ControllerButton
[src][+]
impl StructuralEq for ControllerButton
[src]
impl StructuralPartialEq for ControllerButton
[src]
Auto Trait Implementations
impl RefUnwindSafe for ControllerButton
impl Send for ControllerButton
impl Sync for ControllerButton
impl Unpin for ControllerButton
impl UnwindSafe for ControllerButton
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,