Exemple #1
0
 private void Awake()
 {
     if (!ReInput.get_unityJoystickIdentificationRequired())
     {
         return;
     }
     ReInput.add_ControllerConnectedEvent(new Action <ControllerStatusChangedEventArgs>(this.JoystickConnected));
     ReInput.add_ControllerDisconnectedEvent(new Action <ControllerStatusChangedEventArgs>(this.JoystickDisconnected));
     this.IdentifyAllJoysticks();
 }