C# 클래스 SadConsole.Input.KeyboardInfo

파일 보기 프로젝트 열기: Thraka/SadConsole 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
InitialRepeatDelay float
RepeatDelay float

공개 메소드들

메소드 설명
Clear ( ) : void

Clears the KeysPressed, KeysDown, KeysReleased collections.

IsKeyDown ( Keys key ) : bool

Returns true if the key is in the KeysDown collection.

IsKeyReleased ( Keys key ) : bool

Returns true when they is in the KeysReleased collection.

IsKeyUp ( Keys key ) : bool

Returns true if the key is not in the KeysDown collection.

KeyboardInfo ( ) : System.Collections.Generic
ProcessKeys ( GameTime gameTime ) : void

Reads the keyboard state using the GameTime from the update frame.

메소드 상세

Clear() 공개 메소드

Clears the KeysPressed, KeysDown, KeysReleased collections.
public Clear ( ) : void
리턴 void

IsKeyDown() 공개 메소드

Returns true if the key is in the KeysDown collection.
public IsKeyDown ( Keys key ) : bool
key Keys The key to check.
리턴 bool

IsKeyReleased() 공개 메소드

Returns true when they is in the KeysReleased collection.
public IsKeyReleased ( Keys key ) : bool
key Keys The key to check.
리턴 bool

IsKeyUp() 공개 메소드

Returns true if the key is not in the KeysDown collection.
public IsKeyUp ( Keys key ) : bool
key Keys The key to check.
리턴 bool

KeyboardInfo() 공개 메소드

public KeyboardInfo ( ) : System.Collections.Generic
리턴 System.Collections.Generic

ProcessKeys() 공개 메소드

Reads the keyboard state using the GameTime from the update frame.
public ProcessKeys ( GameTime gameTime ) : void
gameTime GameTime
리턴 void

프로퍼티 상세

InitialRepeatDelay 공개적으로 프로퍼티

The initial delay after a key is first pressed before it is included a second time (while held down) in the KeysPressed collection.
public float InitialRepeatDelay
리턴 float

RepeatDelay 공개적으로 프로퍼티

How often a key is included in the KeysPressed collection after the InitialRepeatDelay time has passed.
public float RepeatDelay
리턴 float