A unified theory of discrete and continuous responding