using Microsoft.Iris.Input; namespace Microsoft.Iris.Render.OpenGL { /// /// Holds the current raw-input callback sink and mouse-capture site. The input /// translator (see ) reads /// each event and dispatches translated Silk.NET input to it. /// public sealed class GLInputSystem : IInputSystem { public IRawInputCallbacks? Callbacks { get; private set; } /// /// The visual that has grabbed the mouse via , /// or null. When set, mouse events are routed to it regardless of hit-testing. /// public IRawInputSite? CaptureSite { get; set; } public void RegisterRawInputCallbacks(IRawInputCallbacks handlers) => Callbacks = handlers; public void UnregisterRawInputCallbacks() => Callbacks = null; } }