diff --git a/src/gamepad/controller.cpp b/src/gamepad/controller.cpp index c1a6da2..9a601d9 100644 --- a/src/gamepad/controller.cpp +++ b/src/gamepad/controller.cpp @@ -43,7 +43,9 @@ void Controller::updateButton(pros::controller_digital_e_t button_id) { } void Controller::update() { - for (int i = pros::E_CONTROLLER_DIGITAL_L1; i != pros::E_CONTROLLER_DIGITAL_A; ++i) { this->updateButton(static_cast(i)); } + for (int i = pros::E_CONTROLLER_DIGITAL_L1; i != pros::E_CONTROLLER_DIGITAL_A; ++i) { + this->updateButton(static_cast(i)); + } this->LeftX = this->controller.get_analog(pros::E_CONTROLLER_ANALOG_LEFT_X); this->LeftY = this->controller.get_analog(pros::E_CONTROLLER_ANALOG_LEFT_Y);