[no bug]Fps camera steals mouse

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Randajad
Posts: 59
Joined: Thu May 03, 2012 10:08 am

[no bug]Fps camera steals mouse

Post by Randajad »

To see the bug just change main.cpp:174 line "if (device->isWindowActive())" to "if(1)" in example 2 and alt-tab to another window. Now, when u moving ur mouse, cursor goes to center of screen.
It's nasty bug. I want fps camera and want to continue rendering when window non-active. Please, fix.
Last edited by Randajad on Tue Aug 28, 2012 9:04 am, edited 1 time in total.
Sorry for my English, i'm from Russia.
If i makes mistakes in phrases you can correct me btw. ^_^
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: [bug] Fps camera steals mouse

Post by hybrid »

Well, simply deactivate the FPS cam once your window goes out of focus. That's a user-land decision and no bug (in Irrlicht).
Randajad
Posts: 59
Joined: Thu May 03, 2012 10:08 am

Re: Fps camera steals mouse

Post by Randajad »

Sorry, can't understand what is `user-land decision'. Why it's not bug? What good things it's does?
Sorry for my English, i'm from Russia.
If i makes mistakes in phrases you can correct me btw. ^_^
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Fps camera steals mouse

Post by hybrid »

user-land means that *you* (the user application writer, differentiating from the core engine developer) can decide whether you want to decouple the camera focus once the windows becomes inactive, or not. You can do this without altering the engine at all, simply by writing your application code correctly. That's why it is not a bug, because everything in this reagrd is possible.
Randajad
Posts: 59
Joined: Thu May 03, 2012 10:08 am

Re: Fps camera steals mouse

Post by Randajad »

Clear, thanks for answer very much!
It's nice, but, i think, it's unused feature. But okay, if u don't think so, then ok.
Sorry for my English, i'm from Russia.
If i makes mistakes in phrases you can correct me btw. ^_^
Post Reply