Test for mouseUp event firing when mouse is outside of the window
This commit is contained in:
parent
5b0db16a89
commit
d029a73c68
1 changed files with 4 additions and 1 deletions
|
@ -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!");
|
||||
|
|
Loading…
Reference in a new issue