internal DemoManager(LGuiVec2 WinSize) { this.WinSize = WinSize; TextFont_ = new Font("Arial", 10); WinConvert.Register(); Executor_ = new GdiCommandExecutor(); LGui.SetCommandExecutor(Executor_); var IO = LGui.GetIO(); IO.DisplaySize = new LGuiVec2(960, 540); FileHelper.AddSearchPath($"{AppContext.BaseDirectory}..\\..\\Res\\"); var Mapper = new LGuiMapper(); Input.OnKeyEvent += (Key, IsKeyDown) => { IO.SetKeyState(Mapper.ToLGuiKey(Key), IsKeyDown); }; Input.OnMouseEvent += (Btn, X, Y, IsMouseDown, IsMouseMove) => { IO.SetMouseState(Mapper.ToLGuiMouseBtn(Btn), X, Y, IsMouseDown, IsMouseMove); }; }