Tip. This is really good for dragging (via touch) the camera around in something like a RTS game. Just send the X Y delta floats to the camera position and the camera will move when you drag and stop when you stop or release. You'll need to put the Y float in the camera Z position and you might need to multiply it (multiply by -1, etc if you need to reverse it).
So useful, I use it everywhere now.