public GamePadSimulated AddGamePad() { var gamePad = new GamePadSimulated(this); gamePads.Add(gamePad); RegisterDevice(gamePad); return(gamePad); }
public void RemoveGamePad(GamePadSimulated gamePad) { if (!gamePads.Contains(gamePad)) { throw new InvalidOperationException("Simulated GamePad does not exist"); } UnregisterDevice(gamePad); gamePads.Remove(gamePad); }