This would be great for my game or pretty much any game with first person 3D mouse look. A way to draw the cursor in the center of the game window and keep it drawn there without it technically always being there.
In other words, 3D mouse look is usually done in ENIGMA / GM by setting the cursor to the center of the window every step, and between each step the mouse_x/y values changed is then used to rotate the 3D projection like a camera. But in between each step if the cursor is set to visible it will look retarded because in between each step the cursor moves away from the center coordinates. Usually this is dealt with by keeping the cursor invisible and using a crosshair sprite drawn ortho to the center of the screen.
But I'd like to not use a sprite, I'd strongly prefer using the actual cursor. So I thought, is there a way to draw the current cursor to the center of the window at all times, even when it technically isn't there in between steps when moved?
Something like this is what I'd like to have...
//Locks the cursor to the center of screen //Arg1/2 are ignored when Arg0 is 0/false //Arg0 (bool) - lock cursor? 0 or 1 / true or false //Arg1 (real) - X screen coordinate //Arg2 (real) - Y screen coordinate window_set_cursor_lock(lock,x,y)
I think this isn't that hard to add I hope someone could do this for me <3
|