The -mouse switch will confine the pointer to the window on the OS X version; you are talking about a very different use case from Carbon.