public InputController[] GetFilteredGameControllers(InputManager.Controllers filter) { List <InputController> filteredControllers = new List <InputController>(); InputController[] controllers = GetActiveGameControllers(); for (int i = 0; i < controllers.Length; ++i) { if (controllers[i].controller == filter) { filteredControllers.Add(controllers[i]); } } return(filteredControllers.ToArray()); }
public InputController(InputManager.Controllers controller, int controllerIndex) { this.controller = controller; this.index = controllerIndex; }