Allow overriding of the mouse position getter.

Useful if the ui is positioned behind the camera as opposed as in front
of it.

Signed-off-by: Saggi Mizrahi <ficoos@gmail.com>