Are there any plans for a way to determine if a window has focus? (Aside from hooking the events)
The events work, but not perfect...
On application start I either have to assume the window is focused, or assume it is not.
It is possible for an application to start without focus. For example, if your application starts while the Start Menu is open or if the user launched the game from a dock application installed (RocketDock, StarDock, etc).
When this happens LostFocus isn't raised so my game logic believes the window is focused, when in fact, it is not.
Minimal example of how I'm determining if the window is focused.
bool isFocused = true;
window.GainedFocus += (s, e) => isFocused = true;
window.LostFocus += (s, e) => isFocused = false;
if (isFocused)
{
// Handle Keyboard/Mouse Input
}