The only think I can think of off the top of my head is that you would have to detect that the mouse has reached the edge of the screen, or some other pre-defined limit, and then reset the mouse to the opposite limit. This would be sort of like an ordinary encoder rolling over, and you would have to do the usual tricks to deal with that. If I get any better ideas, I'll post again.
Regards,
Matt