Esempio n. 1
0
        public GamePadSimulated AddGamePad()
        {
            var gamePad = new GamePadSimulated(this);

            gamePads.Add(gamePad);
            RegisterDevice(gamePad);
            return(gamePad);
        }
Esempio n. 2
0
 public void RemoveGamePad(GamePadSimulated gamePad)
 {
     if (!gamePads.Contains(gamePad))
     {
         throw new InvalidOperationException("Simulated GamePad does not exist");
     }
     UnregisterDevice(gamePad);
     gamePads.Remove(gamePad);
 }