コード例 #1
0
        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);
        }
コード例 #2
0
 private void HandleGamePadDisconnected(GamePadDisconnectedEvent gpde)
 {
     isRotatingCCW = isRotatingCW = false;
 }