public static unsafe void ProcessKey(ref WindowMessage msg, EventedWindowCore window) { fixed(WindowMessage *ptr = &msg) { var packet = new KeyPacket(ptr); window.OnKey(ref packet); } }
protected internal virtual void OnKey(ref KeyPacket packet) { unsafe { this.OnMessageDefault(ref ((WindowMessageWrapper *)packet.Message)->Value); } }