Check out the (possibly outdated) Steam discussion: [Mac] Rotation using Magic Mouse or TrackPad.