Beispiel #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);
        }
Beispiel #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);
        }