mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-22 13:31:01 +00:00
Test for mouseUp event firing when mouse is outside of the window
This commit is contained in:
parent
5b0db16a89
commit
d029a73c68
|
@ -32,6 +32,8 @@ namespace Examples.Tests
|
|||
{
|
||||
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