Ejemplo n.º 1
0
 private void ParseMouseEvent(string mouseEvent)
 {
     string[] words = mouseEvent.Split('+');
     if (words[0] == "LEFTDOWN")
     {
         InputGenerator.SendLeftDown(int.Parse(words[1]), int.Parse(words[2]));
     }
     if (words[0] == "LEFTUP")
     {
         InputGenerator.SendLeftUp(int.Parse(words[1]), int.Parse(words[2]));
     }
     if (words[0] == "MOVE")
     {
         InputGenerator.SendMove(int.Parse(words[1]), int.Parse(words[2]));
     }
     if (words[0] == "RIGHTUP")
     {
         InputGenerator.SendRightUp(int.Parse(words[1]), int.Parse(words[2]));
     }
     if (words[0] == "RIGHTDOWN")
     {
         InputGenerator.SendRightDown(int.Parse(words[1]), int.Parse(words[2]));
     }
     if (words[0] == "WHEEL")
     {
         InputGenerator.SendWheel(int.Parse(words[1]), int.Parse(words[2]), int.Parse(words[3]));
     }
 }