/// <summary> /// Subscribe to controller input events /// </summary> /// <param name="sub">The instance subscribing</param> /// <param name="buttons">A list of buttons it cares about</param> /// <param name="playerCount">The player number</param> public static void Subscribe(iControllerObserver sub, List <Buttons> buttons, int playerCount) { m_subList.Add(sub); m_entityButtonList.Add(new EntityButton(0, buttons)); playerDict.Add(playerCount, sub); }
/// <summary> /// Subscribe to controller input events /// </summary> /// <param name="sub">The instance subscribing</param> /// <param name="buttons">A list of buttons it cares about</param> /// <param name="playerCount">The player number</param> public static void UnSubscribe(iControllerObserver sub, List <Buttons> buttons, int playerCount) { //m_subList.Remove(sub); //m_entityButtonList.Remove(new EntityButton(0, buttons)); //playerDict.Remove(playerCount); }