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

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