I tried with a keyboard, which i think it must be the same principle the hitbox use.
- You hold backward, then hold forward and the forward cancels the backward, making the character walk forward.
- Viceversa when you hold forward first.
- You press both directions at the same time and nothing happens to the character, which i guess it answers your doubts.