The x,y values of GetMouseAxis() keep growing each time I move the mouse. No matter if I move left, right, up, down, they only increase.
When I added this, the camera shakes even if I don't touch the mouse:
newmousepos = window->GetMouseAxis() - oldmousepos;
oldmousepos = newmousepos;