示例#1
0
 private void JoystickButtonPressed(JoystickButton Button, bool Pressed)
 {
     if (Button == JoystickButton.Move)
     {
         if (Pressed)
         {
             MouseDownP.Invoke(null, new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0));
         }
         else
         {
             MouseUpP.Invoke(null, new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0));
         }
     }
     if (Button == JoystickButton.Shoot)
     {
         if (Pressed)
         {
             MouseDownP.Invoke(null, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0));
         }
         else
         {
             MouseUpP.Invoke(null, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0));
         }
     }
 }
示例#2
0
 private void GLD_MouseUp(object sender, MouseEventArgs e)
 {
     MouseUpP.Invoke(sender, e);
 }