Beispiel #1
0
 public void OnEnable()
 {
     this.Setup();
     InputGroup.Load();
     if (!Proxy.IsPlaying())
     {
         return;
     }
     this.Validate();
     if (this.disabled)
     {
         return;
     }
     InputProfile.Load();
     InputInstance.Load();
     Console.AddKeyword("inputShowProfiles", this.ShowProfiles);
     Console.AddKeyword("inputAssignProfile", this.AssignProfile);
     Console.AddKeyword("inputCreateProfile", this.CreateProfile);
     Console.AddKeyword("inputEditProfile", this.EditProfile);
     Console.AddKeyword("inputRemoveProfile", this.RemoveProfile);
     Events.Register("On Profile Selected", this);
     Events.Register("On Profile Edited", this);
     Events.Add("On Update", this.Update);
     Events.Add("On Fixed Update", this.FixedUpdate);
     Events.Add("On GUI", this.OnGUI);
     this.DetectGamepads();
 }
Beispiel #2
0
 //===============
 // Unity
 //===============
 public void Refresh()
 {
     if (Proxy.IsEditor())
     {
         InputGroup.Save();
         InputGroup.Load();
     }
 }
Beispiel #3
0
 [ContextMenu("Load Settings")] public void Load()
 {
     InputGroup.Load();
 }