Is it possible to have an "endless" mouse, that isn't constrained to the boundaries of the display? Maybe by warping it every frame?
]]>Do you mean just having the pointer appear at the opposite side of the screen of where it exits? I suppose you could just call set_mouse_xy.
]]>No, I mean, like hiding the cursor, and using the actual movement of the physical mouse which isn't constrained by the display. As you would in an fps.
]]>Right. Not sure about that
]]>You can try to emulate it with something like the code below. Its propably not perfect but it works.
Use the dx and dy to determine the mouse movements.
( press G to hide / show the mouse cursor )
]]>
Yep, pretty sure FPS's just record the mouse movement and then reset its position to the centre of the screen every frame or thereabouts. Izual's sample code appears to be doing just that.
]]>ex_mouse_warp that ships with Allegro also does the same: https://github.com/liballeg/allegro5/blob/master/examples/ex_mouse_warp.c
]]>