public KeyAction(char ch) { Key = ch.ToSWF(); VKey = Key.ToVK(); Modifiers = new Keys[0]; VModifiers = new User32InputHook.VK[0]; }
public KeyAction(char ch) { Key = ch.ToSWF(); VKey = Key.ToVK(); Modifiers = new Keys[0]; VModifiers = new User32InputHook.VK[0]; }
public KeyAction(User32InputHook.VK key, params User32InputHook.VK[] mods) { VKey = key; Key = key.ToSWF(); Modifiers = mods.ToSWF(); VModifiers = mods; }
public static User32InputHook.VK[] ToVK(this Keys[] a) { User32InputHook.VK[] ka = new User32InputHook.VK[a.Length]; for (int x = 0, max = a.Length; x < max; ++x) { ka[x] = a[x].ToVK(); } return(ka); }
public static User32InputHook.VK[] ToVK(this Keys[] a) { User32InputHook.VK[] ka = new User32InputHook.VK[a.Length]; for (int x = 0, max = a.Length; x < max; ++x) ka[x] = a[x].ToVK(); return ka; }
public static Keys ToSWF(this User32InputHook.VK key) { return((Keys)key); }