Hi, it seemed that the function stopped working in my game. I downloaded the demo project again and opened it up in the latest version of gamemaker v2022.2.0.487 and it seems like it's not locking my cursor to the window.
Constrains the mouse cursor to a rectangle at system level · By