C# 클래스 NScumm.MonoGame.InputState

Helper for reading input from keyboard and gamepad. This public class tracks the current and previous state of both input devices, and implements query properties for high level input actions such as "move up through the menu" or "pause the game".
This public class is similar to one in the GameStateManagement sample.
파일 보기 프로젝트 열기: scemino/nscumm 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CurrentGamePadState Microsoft.Xna.Framework.Input.GamePadState
CurrentKeyboardState Microsoft.Xna.Framework.Input.KeyboardState
LastGamePadState Microsoft.Xna.Framework.Input.GamePadState
LastKeyboardState Microsoft.Xna.Framework.Input.KeyboardState

공개 메소드들

메소드 설명
IsNewKeyPress ( Keys key ) : bool

Helper for checking if a key was newly pressed during this update.

Update ( ) : void

Reads the latest state of the keyboard and gamepad.

메소드 상세

IsNewKeyPress() 공개 메소드

Helper for checking if a key was newly pressed during this update.
public IsNewKeyPress ( Keys key ) : bool
key Keys
리턴 bool

Update() 공개 메소드

Reads the latest state of the keyboard and gamepad.
public Update ( ) : void
리턴 void

프로퍼티 상세

CurrentGamePadState 공개적으로 프로퍼티

public GamePadState,Microsoft.Xna.Framework.Input CurrentGamePadState
리턴 Microsoft.Xna.Framework.Input.GamePadState

CurrentKeyboardState 공개적으로 프로퍼티

public KeyboardState,Microsoft.Xna.Framework.Input CurrentKeyboardState
리턴 Microsoft.Xna.Framework.Input.KeyboardState

LastGamePadState 공개적으로 프로퍼티

public GamePadState,Microsoft.Xna.Framework.Input LastGamePadState
리턴 Microsoft.Xna.Framework.Input.GamePadState

LastKeyboardState 공개적으로 프로퍼티

public KeyboardState,Microsoft.Xna.Framework.Input LastKeyboardState
리턴 Microsoft.Xna.Framework.Input.KeyboardState