Why does my camera break mouse position targeting? [duplicate]

I made a short video of this.

Basically, when the screen scrolls with the camera, the character begins firing at the incorrect mouse position. You can see where I am clicking the whole time. As we move towards the right edge (the more we scroll), you'll notice the distance away from the correct position increases. The shooting mechanic worked just fine before I added the camera.

I'm using a translation matrix to implement my camera.

What could be causing this?

marked as duplicate by Anko, Josh♦Feb 14 '14 at 17:26

Say you more all objects using xOffset by 500px, you then subtract xOffset from all objects so that they appear to be in the correct place. if you wanted the mouse to interact with them, you'd have to add the xOffset back onto the Mouses x coordinate.