예제 #1
0
            public void Export(FileStream fs)
            {
                fs.WriteByte((byte)edown.Count);
                foreach (Dummy.Keybinding.Event ev in edown)
                {
                    byte[] buf = NativeInput.struct2byte(ev);
                    fs.Write(buf, 0, buf.Length);
                }

                fs.WriteByte((byte)eup.Count);
                foreach (Dummy.Keybinding.Event ev in eup)
                {
                    byte[] buf = NativeInput.struct2byte(ev);
                    fs.Write(buf, 0, buf.Length);
                }

                fs.WriteByte((byte)eheld.Count);
                foreach (Dummy.Keybinding.Event ev in eheld)
                {
                    byte[] buf = NativeInput.struct2byte(ev);
                    fs.Write(buf, 0, buf.Length);
                }
            }
예제 #2
0
 public void Export(FileStream fs)
 {
     byte[] b = NativeInput.struct2byte(rekt);
     fs.Write(b, 0, b.Length);
     kb.Export(fs);
 }