Keeping the mouse inside of Krom

I know I must be missing something simple, but how do you keep the mouse inside the game window?


There is a “set mouse lock” node in the input group. You can use it with an “on init” event node to lock the mouse in the center of the window. At least that is what I do.