C# 클래스 Bricklayer.Client.InputHandler

Gets current mouse and keyboard states and provides easy access to them
파일 보기 프로젝트 열기: Cyral/Bricklayer 1 사용 예제들

공개 메소드들

메소드 설명
AllKeysDown ( ) : bool

Checks if all of the keys specified are down

AnyKeysDown ( ) : bool

Checks if any of the keys specified are down

AnyKeysPressed ( ) : bool

Checks if any of the keys specified are pressed/toggled

GetDigitPressed ( ) : int

Gets the current number key pressed, returns -1 if none

InputHandler ( ) : System

Creats a new InputHandler

IsKeyDown ( Keys key ) : bool

Checks if a given key is currently down

IsKeyPressed ( Keys key ) : bool

Checks if a given key is currently being pressed (Was not pressed last state, but now is)

IsKeyUp ( Keys key ) : bool

Checks if a given key is currently up

IsLeftClicked ( ) : bool

Checks if the left button is being clicked (Currently is down, wasn't last frame)

IsLeftDown ( ) : bool

Checks if the left button is being held down

IsLeftUp ( ) : bool

Checks if the left button is currently up

IsRightClicked ( ) : bool

Checks if the right button is being clicked (Currently is down, wasn't last frame)

IsRightDown ( ) : bool

Checks if the right button is being held down

IsRightUp ( ) : bool

Checks if the right button is currently up

Update ( ) : void

Updates the input states

WasAllKeysUp ( ) : bool

Checks if all of the keys specified were up last frame

WasAnyKeysDown ( ) : bool

Checks if any of the keys specified were down last frame

WasKeyDown ( Keys key ) : bool

Checks if a given key is was down last frame

WasKeyPressed ( Keys key ) : bool

Checks if a given key has been toggled (Was pressed last state, but now isn't)

WasKeyUp ( Keys key ) : bool

Checks if a given key is was up last frame

WereAnyKeysUp ( ) : bool

Checks if any of the keys specified were up the last frame

메소드 상세

AllKeysDown() 공개 메소드

Checks if all of the keys specified are down
public AllKeysDown ( ) : bool
리턴 bool

AnyKeysDown() 공개 메소드

Checks if any of the keys specified are down
public AnyKeysDown ( ) : bool
리턴 bool

AnyKeysPressed() 공개 메소드

Checks if any of the keys specified are pressed/toggled
public AnyKeysPressed ( ) : bool
리턴 bool

GetDigitPressed() 공개 메소드

Gets the current number key pressed, returns -1 if none
public GetDigitPressed ( ) : int
리턴 int

InputHandler() 공개 메소드

Creats a new InputHandler
public InputHandler ( ) : System
리턴 System

IsKeyDown() 공개 메소드

Checks if a given key is currently down
public IsKeyDown ( Keys key ) : bool
key Keys
리턴 bool

IsKeyPressed() 공개 메소드

Checks if a given key is currently being pressed (Was not pressed last state, but now is)
public IsKeyPressed ( Keys key ) : bool
key Keys
리턴 bool

IsKeyUp() 공개 메소드

Checks if a given key is currently up
public IsKeyUp ( Keys key ) : bool
key Keys
리턴 bool

IsLeftClicked() 공개 메소드

Checks if the left button is being clicked (Currently is down, wasn't last frame)
public IsLeftClicked ( ) : bool
리턴 bool

IsLeftDown() 공개 메소드

Checks if the left button is being held down
public IsLeftDown ( ) : bool
리턴 bool

IsLeftUp() 공개 메소드

Checks if the left button is currently up
public IsLeftUp ( ) : bool
리턴 bool

IsRightClicked() 공개 메소드

Checks if the right button is being clicked (Currently is down, wasn't last frame)
public IsRightClicked ( ) : bool
리턴 bool

IsRightDown() 공개 메소드

Checks if the right button is being held down
public IsRightDown ( ) : bool
리턴 bool

IsRightUp() 공개 메소드

Checks if the right button is currently up
public IsRightUp ( ) : bool
리턴 bool

Update() 공개 메소드

Updates the input states
public Update ( ) : void
리턴 void

WasAllKeysUp() 공개 메소드

Checks if all of the keys specified were up last frame
public WasAllKeysUp ( ) : bool
리턴 bool

WasAnyKeysDown() 공개 메소드

Checks if any of the keys specified were down last frame
public WasAnyKeysDown ( ) : bool
리턴 bool

WasKeyDown() 공개 메소드

Checks if a given key is was down last frame
public WasKeyDown ( Keys key ) : bool
key Keys
리턴 bool

WasKeyPressed() 공개 메소드

Checks if a given key has been toggled (Was pressed last state, but now isn't)
public WasKeyPressed ( Keys key ) : bool
key Keys
리턴 bool

WasKeyUp() 공개 메소드

Checks if a given key is was up last frame
public WasKeyUp ( Keys key ) : bool
key Keys
리턴 bool

WereAnyKeysUp() 공개 메소드

Checks if any of the keys specified were up the last frame
public WereAnyKeysUp ( ) : bool
리턴 bool