mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-03 01:51:13 +00:00
Trying to debug why mouse is not moving on Linux.
This commit is contained in:
parent
bd238a8d85
commit
9ea06f2895
|
@ -156,7 +156,7 @@ namespace Examples.Tests
|
||||||
void hidden_UpdateFrame(object sender, UpdateFrameEventArgs e)
|
void hidden_UpdateFrame(object sender, UpdateFrameEventArgs e)
|
||||||
{
|
{
|
||||||
this.BeginInvoke(ControlLogMousePositionChanges, hidden, this);
|
this.BeginInvoke(ControlLogMousePositionChanges, hidden, this);
|
||||||
Thread.Sleep(0);
|
//Thread.Sleep(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void LogMouseMove(MouseDevice sender, EventArgs e)
|
void LogMouseMove(MouseDevice sender, EventArgs e)
|
||||||
|
@ -176,9 +176,6 @@ namespace Examples.Tests
|
||||||
|
|
||||||
void LogKeyDown(KeyboardDevice sender, Key key)
|
void LogKeyDown(KeyboardDevice sender, Key key)
|
||||||
{
|
{
|
||||||
if (key == Key.Escape)
|
|
||||||
this.BeginInvoke(new MethodInvoker(Close));
|
|
||||||
|
|
||||||
this.BeginInvoke(ControlLogKeyboardDown, hidden, this, sender, key);
|
this.BeginInvoke(ControlLogKeyboardDown, hidden, this, sender, key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -202,7 +199,7 @@ namespace Examples.Tests
|
||||||
{
|
{
|
||||||
using (InputLogger example = new InputLogger())
|
using (InputLogger example = new InputLogger())
|
||||||
{
|
{
|
||||||
// Get the title and category of this example using reflection.
|
// Get the title and category of this example using reflection.
|
||||||
ExampleAttribute info = ((ExampleAttribute)example.GetType().GetCustomAttributes(false)[0]);
|
ExampleAttribute info = ((ExampleAttribute)example.GetType().GetCustomAttributes(false)[0]);
|
||||||
example.Text = String.Format("OpenTK | {0} {1}: {2}", info.Category, info.Difficulty, info.Title);
|
example.Text = String.Format("OpenTK | {0} {1}: {2}", info.Category, info.Difficulty, info.Title);
|
||||||
example.ShowDialog();
|
example.ShowDialog();
|
||||||
|
|
Loading…
Reference in a new issue