/// <summary> /// Input router constructor. /// </summary> public InputRouter([NotNull] GuiManager manager, [NotNull] EventProcessor processor, Style style, IGuiRenderer pointerRenderer, Sensitivity sensitivity) { if (sensitivity == null) { sensitivity = new Sensitivity(); } this.processor = processor; this.manager = manager; this.sensitivity = sensitivity; processor.KeyDown += KeyDown; processor.KeyUp += KeyUp; this.pointer = new GuiPointer(manager, processor, style, pointerRenderer, sensitivity); manager.AddNLObject(pointer); }