Exemplo 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);
        }
Exemplo 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);
        }