Esempio n. 1
0
        public static unsafe void ProcessKey(ref WindowMessage msg, EventedWindowCore window)
        {
            fixed(WindowMessage *ptr = &msg)
            {
                var packet = new KeyPacket(ptr);

                window.OnKey(ref packet);
            }
        }
Esempio n. 2
0
 protected internal virtual void OnKey(ref KeyPacket packet)
 {
     unsafe { this.OnMessageDefault(ref ((WindowMessageWrapper *)packet.Message)->Value); }
 }