Exemple #1
0
            protected override void OnMouseDown(GUI.MouseEventArgs e)
            {
                base.OnMouseDown(e);

                if (e.Button == GUI.MouseButtons.Left)
                {
                    test.MouseDown(e, test.ConvertScreenToWorld(e.X, e.Y));
                }
                else if (e.Button == GUI.MouseButtons.Right)
                {
                    lastp      = e.Location;
                    rMouseDown = true;
                }
            }
Exemple #2
0
    protected void FarseerPhysics_onMouseDown(Alt.GUI.MouseEventArgs e)
    {
        if (m_Test == null)
        {
            return;
        }

        if (e.Button == Alt.GUI.MouseButtons.Left)
        {
            m_Test.MouseDown(e, m_Test.ConvertScreenToWorld(e.X, e.Y));
        }
        else if (e.Button == Alt.GUI.MouseButtons.Right)
        {
            lastp      = e.Location;
            rMouseDown = true;
        }
    }