CuteAlien wrote:Thanks for the patch.
I see the point of creating a Window without borders, not sure how that would work on X11, but it's probably a little tricky doing that on Windows if it isn't supported by the engine so it might make sense adding that even if it's not yet cross-platform. I didn't even know about ClipCursor so far - have to check what that does when I find some time. But I think that one could still be done in the client-application without modifying Irrlicht as long as it's not cross-platform. And when added - please use same names as the system - when the OS calls it clipcursor it should be named similar (not MouseClip), that way people don't have to wonder if those are different things.
The main reason I went through the trouble implementing these into Irrlicht itself was that both of these problems were quite hard to figure out. Also they need window handle, which wasn't so easy to acquire. Well mouse clip can be done without that, but borderless window can't. First I tried to create the window manually and giving the handle to Irrlicht, but this lead to many other troubles. In the end it was simply easier to modify Irrlicht itself.
Many modern games can be played in borderless "fullscreen" mode, where the application window occupies whole primary screen like it would be fullscreen. But alt-tab example wont change resolution etc. In this case, if you happen to have multiple monitors (like many people seem to have), mouse can easily "leak" on the other monitor(s) which is a big problem. This patch was meant to fix this. Personally I, and many other friends/gamers I know, like to use borderless mode since it is much easier to do other stuff when playing any game that has longer pauses in it.
My current trend in programming is in server side, networking and mobile platforms so I'm not a big expert in graphics/game stuff, only a hobbyist. These couple features were something that I needed in my hobby project. Seemed that quite a few people had been asking the same features, so I hope you can some day implement something similar into released version of Irrlicht
Took me almost two days to get these two things working properly.