I wonder if you could make this work with Rex's boundary plugin.
You might have to lock the mouse onto a object, and use boundary on the object.
Take a look at the plugin and see if you can figure it out, if not I can try to throw something together as an example.
Justin
PS: I'd love to see what progress on your tool You've made.