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