示例#1
0
        public WindowCreator(RawInputParser rawInputParser)
        {
            RawInputParser  = rawInputParser;
            WndProcDelegate = WndProc;

            windowClassName += Guid.NewGuid().ToString();
        }
        protected void Initialize()
        {
            RawInputParser = new RawInputParser();
            WindowCreator  = new WindowCreator(RawInputParser);
            var windowHandle = WindowCreator.CreateWindow();

            Devices = new DeviceEnumerator(RawInputParser, windowHandle);
        }