This is a library for a simple, non-quadrature, incremental encoder (i.e., the encoder provides only one output signal).
Movement direction, if needed, must to determined from information outside of the encoder, such as the direction the motor is driven.