C# 클래스 UHSampleGame.InputManagement.InputManager

파일 보기 프로젝트 열기: holtkampw/UH-Sample-XNA-Project 1 사용 예제들

공개 메소드들

메소드 설명
AddInput ( InputAction action, Buttons button ) : void

Allows the action to be triggered by the key

AddInput ( InputAction action, Keys key ) : void

Allows the action to be triggered by the key

CheckAction ( InputAction action ) : bool

Checks if the action has is triggered

CheckAction ( InputAction action, PlayerIndex playerIndex ) : bool

Checks if the action has is triggered

CheckNewAction ( InputAction action ) : bool

Checks if the action has just been triggered

CheckNewAction ( InputAction action, PlayerIndex playerIndex ) : bool

Checks if the action has just been triggered

CheckNewReleaseAction ( InputAction action ) : bool
CheckNewReleaseAction ( InputAction action, PlayerIndex playerIndex ) : bool
CheckReleaseAction ( InputAction action ) : bool

Checks if the action has just been released

CheckReleaseAction ( InputAction action, PlayerIndex playerIndex ) : bool

Checks if the action has just been released

InputManager ( ) : System
Update ( ) : void

Updates previous and current input devices

비공개 메소드들

메소드 설명
IsButtonPressed ( Buttons button, PlayerIndex playerIndex ) : bool
IsButtonReleased ( Buttons button, PlayerIndex playerIndex ) : bool
IsKeyPressed ( Keys key ) : bool
IsKeyReleased ( Keys key ) : bool
IsNewButtonPressed ( Buttons button, PlayerIndex playerIndex ) : bool
IsNewButtonReleased ( Buttons button, PlayerIndex playerIndex ) : bool
IsNewKeyPressed ( Keys key ) : bool
IsNewKeyReleased ( Keys key ) : bool

메소드 상세

AddInput() 공개 메소드

Allows the action to be triggered by the key
public AddInput ( InputAction action, Buttons button ) : void
action InputAction The input action to be triggered
button Buttons The button to trigger the action
리턴 void

AddInput() 공개 메소드

Allows the action to be triggered by the key
public AddInput ( InputAction action, Keys key ) : void
action InputAction The input action to be triggered
key Keys The key to trigger the action
리턴 void

CheckAction() 공개 메소드

Checks if the action has is triggered
public CheckAction ( InputAction action ) : bool
action InputAction The action to check
리턴 bool

CheckAction() 공개 메소드

Checks if the action has is triggered
public CheckAction ( InputAction action, PlayerIndex playerIndex ) : bool
action InputAction The action to check
playerIndex PlayerIndex The player index to check
리턴 bool

CheckNewAction() 공개 메소드

Checks if the action has just been triggered
public CheckNewAction ( InputAction action ) : bool
action InputAction The action to check
리턴 bool

CheckNewAction() 공개 메소드

Checks if the action has just been triggered
public CheckNewAction ( InputAction action, PlayerIndex playerIndex ) : bool
action InputAction The action to check
playerIndex PlayerIndex The player index to check
리턴 bool

CheckNewReleaseAction() 공개 메소드

public CheckNewReleaseAction ( InputAction action ) : bool
action InputAction
리턴 bool

CheckNewReleaseAction() 공개 메소드

public CheckNewReleaseAction ( InputAction action, PlayerIndex playerIndex ) : bool
action InputAction
playerIndex PlayerIndex
리턴 bool

CheckReleaseAction() 공개 메소드

Checks if the action has just been released
public CheckReleaseAction ( InputAction action ) : bool
action InputAction The action to check
리턴 bool

CheckReleaseAction() 공개 메소드

Checks if the action has just been released
public CheckReleaseAction ( InputAction action, PlayerIndex playerIndex ) : bool
action InputAction The action to check
playerIndex PlayerIndex The player index to check
리턴 bool

InputManager() 공개 메소드

public InputManager ( ) : System
리턴 System

Update() 공개 메소드

Updates previous and current input devices
public Update ( ) : void
리턴 void