Example #1
0
 public static void KeyDown(Keys key)
 {
     if (Input.IsKeyDown(key) == false)
     {
         Input.KeyDown(key);
     }
 }
Example #2
0
 public static void KeyUp(Keys key)
 {
     if (Input.IsKeyDown(key) == true)
     {
         Input.KeyUp(key);
     }
 }
Example #3
0
 static public void RightMouseButtonUp()
 {
     if (Input.GetKeyState(Keys.RButton) == true)
     {
         Input.RightUp();
     }
 }
Example #4
0
 static public void RightMouseButtonDown()
 {
     if (Input.GetKeyState(Keys.RButton) == false)
     {
         Input.RightDown();
     }
 }
Example #5
0
 static public void LeftMouseButtonUp()
 {
     if (Input.GetKeyState(Keys.LButton) == true)
     {
         Input.LeftUp();
     }
 }
Example #6
0
 static public void LeftMouseButtonDown()
 {
     if (Input.GetKeyState(Keys.LButton) == false)
     {
         Input.LeftDown();
     }
 }
Example #7
0
 public static void KeyPress(Keys key)
 {
     Input.KeyDown(key);
     Thread.Sleep(1);
     Input.KeyUp(key);
 }