The system is automatic so whenever you duck near cover, you will instantly be stuck to that piece of geometry.
It works as advertised, but I found myself struggling whenever an enemy was at least 80 degrees to the left or right of my position.