FellippeHeitor,
Full screen would be preferable but not everybody wants to run things in full screen.(as for myself, I prefer full screen modes)
Though I probably need a way to detect if someone has made the game full screen and turn off the mouse lock. Not sure if the FULLSCREEN function will give me what I'm looking for in that regard.
I'm certain those unwilling to have their screen taken up unwantedly by a surprise fullscreen program would also be unwilling to have their mouse trapped in a window; Maybe offer the choice to switch to full screen and design your interface so it keeps a safe distance from the window's edges.
I agree with this 100%. I really don't want programs which have to run FULLSCREEN, but I'd much prefer them to a program which traps my mouse. Just because you CAN trap the mouse, doesn't mean you SHOULD.
A game that mouse locked my screen is a game I'd put in the "novelty" category; I'd try it out once, and then delete it, as it doesn't play nice with the rest of my stuff I have open and running all the time.
I think a much more elegant solution would be to wrap a border around your screen to prevent accidental clicks out-of-game.
For example: Instead of a SCREEN _NEWIMAGE (800,600,32), make the game SCREEN _NEWIMAGE (820, 620, 32), wrap a 10-pixel thick design of roses/swords/hearts/whatever around the edges to give a decorative highlight, and then map the game from (10,10)-(810,610)...
You'd get the same playable area, some nice custom borders for decoration, and would prevent/reduce accidental off-screen clicks, all while playing nice with anything else the user has in the background.