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