In most cases, the turnstile is attached to the same machine you scan your Octopus card. For the one you saw with the turnstile attached to the machine to your left, that means those machines are two-way.
For MTR, those machines + turnstiles can only operate one direction at a time. You can see some of this kind of two-way machines in Lok Fu Station.
For KCR, those two-way machines also exist with similar operations. But I saw in KCR stations, those two-way machines + turnstiles can operate both directions at the same time.