New library to control a robot with two stepper motors

About the boards based on A4988, I'm not sure if just two pins would be enough to leverage all the features offered by the board. Some moves require a wheel is locked in the same position while the other keeps moving. I'm not sure how this could be achieved only with the step and dir pins, is this possible?