Struct vex_rt::controller::Button [−][src]
pub struct Button { /* fields omitted */ }Represents a button on a Vex controller.
Implementations
impl Button[src]
impl Button[src]pub fn is_pressed(&self) -> Result<bool, ControllerError>[src]
Checks if a given button is pressed. Returns 0 if the controller is not connected.