コード例 #1
0
        public override void HandleInput(InputState input)
        {
            PlayerIndex firstPlayer, dummyPlayer;
            if (input.IsMenuSelect(null, out firstPlayer))
            {
                SelectionSound.Play();
                Camera.ShakeCamera(DriftingCamera.CameraShakingTime, DriftingCamera.CameraShakingFrequency, DriftingCamera.CameraShakingAmplitude);
                maxFadingTime = DriftingCamera.CameraShakingTime * 0.5f;
                fadingTimer = maxFadingTime;
                leavingIntro = true;

                // TODO Notify game screen which player is first!
            }
            else if (input.IsMenuCancel(null, out dummyPlayer))
            {
                ExitScreen();
            }
            #if(!XBOX360)
            // Toggle fullscreen mode
            if (input.IsToggleFullScreen(null))
                ((HoneymoonGame)Game).ToggleFullScreen();
            #endif
        }
コード例 #2
0
 public override void HandleInput(InputState input)
 {
     if (input.IsPauseGame(null))
     {
         Profile.Dump();
     }
     #if(!XBOX360)
     // Toggle fullscreen mode
     if (input.IsToggleFullScreen(null))
         ((HoneymoonGame)Game).ToggleFullScreen();
     #endif
 }