mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-09 08:00:40 +00:00
Test for mouseUp event firing when mouse is outside of the window
This commit is contained in:
parent
5b0db16a89
commit
d029a73c68
|
@ -31,7 +31,9 @@ namespace Examples.Tests
|
||||||
protected override void OnLoad(EventArgs e)
|
protected override void OnLoad(EventArgs e)
|
||||||
{
|
{
|
||||||
base.OnLoad(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.ClearColor(Color.MidnightBlue);
|
||||||
GL.Enable(EnableCap.DepthTest);
|
GL.Enable(EnableCap.DepthTest);
|
||||||
}
|
}
|
||||||
|
@ -43,6 +45,7 @@ namespace Examples.Tests
|
||||||
Console.WriteLine("The left mouse button is down!");
|
Console.WriteLine("The left mouse button is down!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// While we are here, test keyboard.
|
// While we are here, test keyboard.
|
||||||
if(OpenTK.Input.Keyboard.GetState()[Key.A]){
|
if(OpenTK.Input.Keyboard.GetState()[Key.A]){
|
||||||
Console.WriteLine("The A key is down!");
|
Console.WriteLine("The A key is down!");
|
||||||
|
|
Loading…
Reference in a new issue