public bool Handle(IEvent evt) { GamePadConnectedEvent gamePadConnectedEvent = evt as GamePadConnectedEvent; if (gamePadConnectedEvent != null) { AddGamePadListener(gamePadConnectedEvent.PlayerIndex); } GamePadDisconnectedEvent gamePadDisconnectedEvent = evt as GamePadDisconnectedEvent; if (gamePadDisconnectedEvent != null) { RemoveGamePadListener(gamePadDisconnectedEvent.PlayerIndex); } return(false); }
private void HandleGamePadDisconnected(GamePadDisconnectedEvent gpde) { isRotatingCCW = isRotatingCW = false; }