main process method should not have any logic.
This commit is contained in:
@ -63,14 +63,6 @@ void Gravity::Process() {
|
|||||||
play_button.Process();
|
play_button.Process();
|
||||||
encoder.Process();
|
encoder.Process();
|
||||||
|
|
||||||
// Call button state change handlers.
|
|
||||||
if (play_button.Change() == Button::CHANGE_PRESSED) {
|
|
||||||
play_button.OnPress();
|
|
||||||
}
|
|
||||||
if (shift_button.Change() == Button::CHANGE_PRESSED) {
|
|
||||||
shift_button.OnPress();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update Output states.
|
// Update Output states.
|
||||||
for (int i; i < OUTPUT_COUNT; i++) {
|
for (int i; i < OUTPUT_COUNT; i++) {
|
||||||
outputs[i].Process();
|
outputs[i].Process();
|
||||||
|
|||||||
Reference in New Issue
Block a user