Either we need to modify the getInput example (as it will not trigger the attack by default): if(digitalRead(attackButtonPinNumber) == HIGH) joystickWobble = ATTACK_THRESHOLD; Or we can just say, that the user attacks when the threshold is reached (makes it easier to understand if you use alternative input methods).
41 KiB
41 KiB