Test for mouseUp event firing when mouse is outside of the window

This commit is contained in:
Andy Korth 2012-12-21 21:22:55 -06:00
parent 5b0db16a89
commit d029a73c68

View file

@ -31,7 +31,9 @@ namespace Examples.Tests
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
this.Mouse.ButtonUp += (object sender, MouseButtonEventArgs buttonEvent) => Console.WriteLine("Mouse button up: " + buttonEvent.Button + " at: " + buttonEvent.Position);
GL.ClearColor(Color.MidnightBlue);
GL.Enable(EnableCap.DepthTest);
}
@ -43,6 +45,7 @@ namespace Examples.Tests
Console.WriteLine("The left mouse button is down!");
}
// While we are here, test keyboard.
if(OpenTK.Input.Keyboard.GetState()[Key.A]){
Console.WriteLine("The A key is down!");