How to make a camera-move rotate with mouse?

Can you help me with this?