Skip to content

Commit

Permalink
style: 🎨 Format controller.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ion098 committed Aug 19, 2024
1 parent 1b5c5f8 commit 641917b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gamepad/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<pros::controller_digital_e_t>(i)); }
for (int i = pros::E_CONTROLLER_DIGITAL_L1; i != pros::E_CONTROLLER_DIGITAL_A; ++i) {
this->updateButton(static_cast<pros::controller_digital_e_t>(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);
Expand Down

0 comments on commit 641917b

Please sign in to comment.