Exemplo n.º 1
0
 /// <summary>Default constructor</summary>
 public Key(
     MessagingApi.VKeys vk            = MessagingApi.VKeys.NULL,
     MessagingApi.ShiftType shiftType = MessagingApi.ShiftType.NONE)
 {
     this.Vk = vk;
     //this.ShiftKey = MessagingApi.VKeys.NULL;
     this.ShiftType = shiftType;
 }
Exemplo n.º 2
0
        public Key(char c)
        {
            var helper = new Helper {
                Value = MessagingApi.VkKeyScan(c)
            };

            this.Vk        = (MessagingApi.VKeys)helper.Low;
            this.ShiftKey  = MessagingApi.VKeys.NULL;
            this.ShiftType = (MessagingApi.ShiftType)helper.High;
        }
Exemplo n.º 3
0
 /// <summary>Constructor if you already have a whole key. Good for making a dereferenced copy.</summary>
 /// <param name="key">The already built key.</param>
 public Key(Key key)
 {
     this.Vk        = key.Vk;
     this.ShiftKey  = key.ShiftKey;
     this.ShiftType = key.ShiftType;
 }