예제 #1
0
            //public bool IsSystemKey { get; private set; }

            public UniqueKeyPressed(Key key, int vkCode /*, bool isSystemKey*/)
            {
                KeyPressed = key;
                VkCode     = vkCode;
                IsShifted  = KeyboardStates.IsShifted();
                //IsSystemKey = isSystemKey;
            }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KeyboardInput"/> struct.
 /// </summary>
 /// <param name="keyEventRecord">A Conhics.Integration.KEY_EVENT_RECORD object defining keyboard event information.</param>
 internal KeyboardInput(Integration.KEY_EVENT_RECORD keyEventRecord)
 {
     this.KeyDown        = keyEventRecord.bKeyDown;
     this.KeyRepeatCount = keyEventRecord.wRepeatCount;
     this.VirtualKeyCode = keyEventRecord.wVirtualKeyCode;
     this.Character      = keyEventRecord.UnicodeChar;
     this.State          = (KeyboardStates)keyEventRecord.dwControlKeyState;
 }