private bool SwigDirectordoContextAction(IntPtr sender, int action) { return doContextAction((sender == IntPtr.Zero) ? null : new MgMotion(sender, false), action); }