I want to run a specific command but i only want to run it when the button is pressed but i cant find the specific function for that
Code:
OI.controlDriver.buttonA.whenPressed(RobotMap.intakeIn);
OI.controlDriver.buttonA.whenReleased(RobotMap.intakeIn);
OI.controlDriver.buttonB.whileHeld(RobotMap.intakeOut);
they just continually run the command