Keeping the mouse within the viewport

Thanks for answering, however unfortunately I believe this is what I’m already doing.

Below is the set of nodes that I currently have. I’m currently looking for a way to lock the mouse to the viewport so when I reach the bounds of the viewport, my mouse can continue moving but will never leave the viewport.