What is the difference between device->isWindowActive() and device->isWindowFocused()? Aren't they the same thing? Probably not
Thanks
device->isWindowActive() and device->isWindowFocused()
On Windows the implementation uses GetFocus() and GetActiveWindow(). It seems to me that they are quite different if the window in question is not a top level window.
Travis
Travis
In Windows, everything is a "Window" a button is a window, a text box is a window, a window is a window, etc.
GetFocus checks if the Irrlicht View"Window" is in focus, this is not the same as the window that the Irrlich Window is in having focus.
Focus = Mouse and keyboard events go to that object. (EG: Having your cursor in the subject text box as opposed to the message body text box.)
Active = The parent Window is active that that element is in.
Unless you are embedding your Irrlicht Window in another Win32 window instead of letting Irrlicht create one for you, the diffrence is virtually nothing.
~DtD
GetFocus checks if the Irrlicht View"Window" is in focus, this is not the same as the window that the Irrlich Window is in having focus.
Focus = Mouse and keyboard events go to that object. (EG: Having your cursor in the subject text box as opposed to the message body text box.)
Active = The parent Window is active that that element is in.
Unless you are embedding your Irrlicht Window in another Win32 window instead of letting Irrlicht create one for you, the diffrence is virtually nothing.
~DtD