Esempio n. 1
0
            /// <summary>
            /// Returns both XInput and DirectInput InputManager
            /// </summary>
            /// <returns>A List of InputManagers</returns>
            public static List <InputManager> GetAvailableInputManagers()
            {
                List <InputManager> managers = new List <InputManager>();

                foreach (Controller ctrl in XInputManager.GetDevices())
                {
                    managers.Add(new XInputManager(ctrl));
                }

                foreach (Joystick stick in DirectInputManager.GetDevices())
                {
                    managers.Add(new DirectInputManager(stick));
                }
                return(managers);
            }
Esempio n. 2
0
 private void Awake()
 {
     XInputManager.instance = this;
     this.InitSkillKeyInput();
     this.attackBufferTime = float.Parse(DataReader <GlobalParams> .Get("attack_cache_i").value);
 }