Esempio n. 1
0
        public RawInput(IntPtr parentHandle, bool captureOnlyInForeground)
        {
            AssignHandle(parentHandle);

            //_keyboardDriver = new RawKeyboard(parentHandle, captureOnlyInForeground);
            //_keyboardDriver.EnumerateDevices();

            _touchDriver = new RawTouch(parentHandle, captureOnlyInForeground, Win32.TouchDevice);
            //_touchDriver.EnumerateDevices();

            // _devNotifyHandle = RegisterForDeviceNotifications(parentHandle);
        }
Esempio n. 2
0
        public RawInput(IntPtr parentHandle, bool captureOnlyInForeground)
        {
            AssignHandle(parentHandle);

            //_keyboardDriver = new RawKeyboard(parentHandle, captureOnlyInForeground);
            //_keyboardDriver.EnumerateDevices();

            _touchDriver = new RawTouch(parentHandle, captureOnlyInForeground, Win32.TouchDevice);
            //_touchDriver.EnumerateDevices();

           // _devNotifyHandle = RegisterForDeviceNotifications(parentHandle);
        }