mirror of
https://github.com/ZuneDev/MicrosoftIris.git
synced 2026-07-27 13:13:29 -07:00
Add Silk.NET.Input handling and hit-testing
This commit is contained in:
@@ -57,5 +57,13 @@ namespace Microsoft.Iris.Render.OpenGL
|
||||
renderer.DrawColoredQuad(matrix, Size.X, Size.Y, c, alpha);
|
||||
}
|
||||
}
|
||||
|
||||
internal override GLVisual? HitTest(Vector2 screenPoint, Matrix4X4<float> parentMatrix)
|
||||
{
|
||||
if (!Visible || (MouseOptions & MouseOptions.Hittable) == 0)
|
||||
return null;
|
||||
Matrix4X4<float> world = LocalMatrix * parentMatrix;
|
||||
return ContainsPoint(screenPoint, world) ? this : null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user