// handle all the inputs, set vars, etc. void pollInput (){ // poll all the switch/button inputs buttonSTART.poll(); buttonPAUSE.poll(); buttonPIT.poll(); buttonRESET.poll(); if (buttonSTART.pushed()) { buttonSTARTvar = true; } if (buttonPAUSE.pushed()) { buttonPAUSEvar = true; } if (buttonPIT.pushed()) { buttonPITvar = true; } if (buttonRESET.pushed()) { buttonRESETvar = true; } }