diff --git a/Joystick.cpp b/Joystick.cpp index 0a11196..9f0c813 100644 --- a/Joystick.cpp +++ b/Joystick.cpp @@ -42,11 +42,23 @@ void Joystick::AddButton(uint8_t pin, ButtonType type, bool pullup) { if (type == BUTTON_PULSED || type == BUTTON_PULSED_DOUBLE_ACTION) { _have_pulsed_button = true; } + + if (_debug) { + Serial.print("Debug: added button of type "); + Serial.print(type); + Serial.print(" on digital pin "); + Serial.println(pin); + } } void Joystick::AddAxis(uint8_t pin) { _axes[_num_axes] = pin; _num_axes++; + + if (_debug) { + Serial.print("Debug: added axis on analog pin "); + Serial.println(pin); + } } void Joystick::Update() {