/// <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; }
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; }
/// <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; }