示例#1
0
 private void test_XNAControl_MouseMove(object sender, MouseEventArgs e)
 {
     if (e.Button == System.Windows.Forms.MouseButtons.Left)
     {
         if (lastX != 0 && lastY != 0)
         {
             float dX = lastX - e.X;
             float dY = lastY - e.Y;
             XnaPanelMain.PanCam(dX, dY);
         }
     }
     lastX = e.X;
     lastY = e.Y;
 }
示例#2
0
 private void pnlMouseEnter(object sender, EventArgs e)
 {
     XnaPanelMain.Focus();
 }
示例#3
0
 private void XnaPanelMain_MouseDown(object sender, MouseEventArgs e)
 {
     XnaPanelMain.ProcessMouseDown(e, XnaPanelMain.Bounds);
 }
示例#4
0
 private void test_XNAControl_MouseEnter(object sender, EventArgs e)
 {
     XnaPanelMain.Focus();
 }
示例#5
0
 private void cbDebug_CheckedChanged(object sender, EventArgs e)
 {
     XnaPanelMain.Debug = chkDebugText.Checked;
     XnaPanelMain.Focus();
 }