I am developing a game using electron that relies on mouse input and is meant to be played in full-screen mode.
My concern is with users who have dual monitors, as I do not want the mouse cursor to easily move out of the game area unless they alt-tab or use a similar method.
I attempted to solve this issue by using:
canvas.requestPointerLock();
However, this solution only removes the pointer entirely. I have not been able to find a way to simply confine the mouse cursor to the active window.