Nicer behaviour for edgescroll in windowed mode

This commit is contained in:
Paul Chote
2010-09-10 22:23:27 +12:00
parent 4ad0a52104
commit 1bc2136771
3 changed files with 5 additions and 2 deletions

View File

@@ -182,7 +182,8 @@ namespace OpenRA.GlRenderer
public void Present()
{
Sdl.SDL_GL_SwapBuffers();
Game.HasInputFocus = 0 != (Sdl.SDL_GetAppState() & Sdl.SDL_APPINPUTFOCUS);
var mods = MakeModifiers(Sdl.SDL_GetModState());
Game.HandleModifierKeys(mods);
MouseEventArgs pendingMotion = null;