언어별/XNA
XNA 게임 종료시키기
지에고
2009. 2. 3. 20:07
무지무지 간단합니다.
KeyboardState currentKeyState = Keyboard.GetState();
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed
|| currentKeyState.IsKeyDown(Keys.Escape))
this.Exit();
업데이트 부분 가장 위부분에 있습니다.
초 간단 기본 팁^^