Exemple #1
0
 // Returns object representing status of a specific touch. (Does not allocate temporary variables)
 public static Touch GetTouch(int index)
 {
     if (index >= 0 && index < touchCount)
     {
         return(Application.GetInputManager().GetTouch(index));
     }
     else
     {
         return(Application.GetInputManager().GetTouch(0));
     }
 }
Exemple #2
0
 // Returns true during the frame the user releases the given mouse button.
 public static bool GetMouseButtonUp(int button)
 {
     if (button >= 0 && button < kMouseButtonCount)
     {
         return(Application.GetInputManager().GetMouseButtonUp(button));
     }
     else
     {
         return(false);
     }
 }