4
edits
Changes
→WIN32 API
Here's some code that actually locks the mouse into a rectangle with no width or height in the center of the screen in WIN32.
* http://pastebin.com/gNmh1uhz
* http://pastebin.com/3YBfXxM2(requires adding the mMousePos and mMouseLock member variables)