示例#1
0
        private void KeyUp(object sender, RawKeyEventArgs args)
        {
            int vk_code = args.VKCode;
            int sc_code = Utils.VkToSc(vk_code);

            for (int i = 0; i < keymap.Count; i++)
            {
                var k = keymap[i];
                if (k.vk_code == vk_code)
                {
                    Keys[i].Pressing = false;
                    Keys[i].Pressed  = true;
                    break;
                }
            }
        }