Ah, I think I can see how it's done now.
Ok, looking at this img...

You could, I think, add a reversing gear between (you would need 2) the left hand sun gear and the 2 planet gears.
This would mean that similar movement of the axles would result in no movement of the drive shaft and equal and opposite movement of the axles would result in movement of the drive shaft. It's quite hard to picture it in my head so not entirely sure if the movement is directly in the required direction though.
I think that's right?