Setting in_dgamouse to zero just forced the mouse into the top left corner instead of the bottom right (for me).