I'm using something like this:
Type TMouse Field x, y Method Update() x = x + MouseX() - (GraphicsWidth() / 2) y = y + MouseY() - (GraphicsHeight() / 2) MoveMouse GraphicsWidth() / 2, GraphicsHeight() / 2 EndMethod EndType