If your mouse cursor does not lock to a game on Windows 11/10, Enable LUA, Update or reinstall the Mouse and Touchpad driver, ...
You can automatically hide the mouse cursor & pointer on Windows 11/10 while playing games, etc., using AutoHideMouseCursor. AutoHideMouseCursor is a small but very useful utility that can be used ...