Exemple #1
0
 /// <summary>
 /// Check if there is joy stick connect to
 /// the pc.
 ///
 /// SOURCE(jenchieh): http://answers.unity3d.com/questions/218477/how-can-i-detect-if-a-gamepad-is-present.html
 /// </summary>
 /// <returns>
 /// true: is connected
 /// false: nothing is detected.
 /// </returns>
 public static bool IsJoystickConnected()
 {
     return(!JCS_Utility.IsArrayEmpty(Input.GetJoystickNames()));
 }