Duality, Quantum Mechanics and (Almost) Complex Manifolds