N
Neihra
Guest
Hi guys!
I'm searching for days on how to block my mouse in my game window because i play on multiple screen, i found this function:
it works fine but if i move my mouse quickly i can click outside the screen... My game is normally in 60 steps/s, when i try with 600 steps it is better but still possible to click outside.
Someone has a solution?
thanks
I'm searching for days on how to block my mouse in my game window because i play on multiple screen, i found this function:
Code:
window_mouse_set(clamp(window_mouse_get_x(), 0, window_get_width()), clamp(window_mouse_get_y(), 0, window_get_height()));
Someone has a solution?
thanks