Merge pull request #5597 from Happy0/mouse_window_focus

Removing requirement to restart game after applying changes to mouse focus option
This commit is contained in:
Paul Chote
2014-06-14 17:30:02 +12:00
9 changed files with 56 additions and 19 deletions

View File

@@ -229,5 +229,15 @@ namespace OpenRA.Graphics
Flush();
Device.DisableDepthBuffer();
}
public void GrabWindowMouseFocus()
{
device.GrabWindowMouseFocus();
}
public void ReleaseWindowMouseFocus()
{
device.ReleaseWindowMouseFocus();
}
}
}

View File

@@ -58,6 +58,9 @@ namespace OpenRA
void DisableDepthBuffer();
void SetBlendMode(BlendMode mode);
void GrabWindowMouseFocus();
void ReleaseWindowMouseFocus();
}
public interface IVertexBuffer<T>

View File

@@ -129,7 +129,7 @@ namespace OpenRA
public bool ShowShellmap = true;
public bool ViewportEdgeScroll = true;
public bool LockMouseWindow = true;
public bool LockMouseWindow = false;
public MouseScrollType MouseScroll = MouseScrollType.Standard;
public float ViewportEdgeScrollStep = 10f;
public float UIScrollSpeed = 50f;