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.
[no bug]Fps camera steals mouse
[no bug]Fps camera steals mouse
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. ^_^
If i makes mistakes in phrases you can correct me btw. ^_^
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: [bug] Fps camera steals mouse
Well, simply deactivate the FPS cam once your window goes out of focus. That's a user-land decision and no bug (in Irrlicht).
Re: Fps camera steals mouse
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. ^_^
If i makes mistakes in phrases you can correct me btw. ^_^
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: Fps camera steals mouse
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.
Re: Fps camera steals mouse
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.
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. ^_^
If i makes mistakes in phrases you can correct me btw. ^_^