pub struct Button { /* private fields */ }Expand description
Represents a button on a Vex controller.
Implementations§
Source§impl Button
impl Button
Sourcepub fn is_pressed(&self) -> Result<bool, ControllerError>
pub fn is_pressed(&self) -> Result<bool, ControllerError>
Checks if a given button is pressed. Returns false if the controller is not connected.
Auto Trait Implementations§
impl Freeze for Button
impl RefUnwindSafe for Button
impl Send for Button
impl Sync for Button
impl Unpin for Button
impl UnwindSafe for Button
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more