C# 클래스 PG515.Input.InputManager

Implements the IInputService interface and the GameComponent class. For information about functions, read comments in IInputService.
상속: Microsoft.Xna.Framework.GameComponent, IInputService
파일 보기 프로젝트 열기: Westerdals/PG2200LectureCode2013 1 사용 예제들

공개 메소드들

메소드 설명
InputManager ( Microsoft.Xna.Framework.Game game ) : System
IsButtonDown ( Buttons button, PlayerIndex playerIndex ) : bool
IsButtonDown ( Buttons button, int playerIndex ) : bool

Same as IsButtonDown(Buttons, playerIndex), uses the int(-1) directly (faster than playerIndex)

IsButtonDown ( MouseButtons button ) : bool
IsButtonPressed ( Buttons button, PlayerIndex playerIndex ) : bool
IsButtonPressed ( Buttons button, int playerIndex ) : bool

Same as IsButtonPressed(Buttons, playerIndex), uses the int(-1) directly (faster than playerIndex)

IsButtonPressed ( MouseButtons button ) : bool
IsButtonReleased ( MouseButtons button ) : bool
IsButtonUp ( Buttons button, PlayerIndex playerIndex ) : bool
IsButtonUp ( Buttons button, int playerIndex ) : bool

Same as IsButtonUp(Buttons, playerIndex), uses the int(-1) directly (faster than playerIndex)

IsButtonUp ( MouseButtons button ) : bool
IsKeyDown ( Keys key ) : bool
IsKeyPressed ( Keys key ) : bool
IsKeyReleased ( Keys key ) : bool
IsKeyUp ( Keys key ) : bool
Update ( GameTime gameTime ) : void

메소드 상세

InputManager() 공개 메소드

public InputManager ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
리턴 System

IsButtonDown() 공개 메소드

public IsButtonDown ( Buttons button, PlayerIndex playerIndex ) : bool
button Buttons
playerIndex PlayerIndex
리턴 bool

IsButtonDown() 공개 메소드

Same as IsButtonDown(Buttons, playerIndex), uses the int(-1) directly (faster than playerIndex)
public IsButtonDown ( Buttons button, int playerIndex ) : bool
button Buttons the button to check
playerIndex int Index of the player (1-4)
리턴 bool

IsButtonDown() 공개 메소드

public IsButtonDown ( MouseButtons button ) : bool
button MouseButtons
리턴 bool

IsButtonPressed() 공개 메소드

public IsButtonPressed ( Buttons button, PlayerIndex playerIndex ) : bool
button Buttons
playerIndex PlayerIndex
리턴 bool

IsButtonPressed() 공개 메소드

Same as IsButtonPressed(Buttons, playerIndex), uses the int(-1) directly (faster than playerIndex)
public IsButtonPressed ( Buttons button, int playerIndex ) : bool
button Buttons the button to check
playerIndex int Index of the player (1-4)
리턴 bool

IsButtonPressed() 공개 메소드

public IsButtonPressed ( MouseButtons button ) : bool
button MouseButtons
리턴 bool

IsButtonReleased() 공개 메소드

public IsButtonReleased ( MouseButtons button ) : bool
button MouseButtons
리턴 bool

IsButtonUp() 공개 메소드

public IsButtonUp ( Buttons button, PlayerIndex playerIndex ) : bool
button Buttons
playerIndex PlayerIndex
리턴 bool

IsButtonUp() 공개 메소드

Same as IsButtonUp(Buttons, playerIndex), uses the int(-1) directly (faster than playerIndex)
public IsButtonUp ( Buttons button, int playerIndex ) : bool
button Buttons the button to check
playerIndex int Index of the player (1-4)
리턴 bool

IsButtonUp() 공개 메소드

public IsButtonUp ( MouseButtons button ) : bool
button MouseButtons
리턴 bool

IsKeyDown() 공개 메소드

public IsKeyDown ( Keys key ) : bool
key Keys
리턴 bool

IsKeyPressed() 공개 메소드

public IsKeyPressed ( Keys key ) : bool
key Keys
리턴 bool

IsKeyReleased() 공개 메소드

public IsKeyReleased ( Keys key ) : bool
key Keys
리턴 bool

IsKeyUp() 공개 메소드

public IsKeyUp ( Keys key ) : bool
key Keys
리턴 bool

Update() 공개 메소드

public Update ( GameTime gameTime ) : void
gameTime GameTime
리턴 void