C# 클래스 SGDE.Input.Keyboard

A keyboard input device.
상속: InputComponent
파일 보기 프로젝트 열기: sgdc/sgdc-old

공개 메소드들

메소드 설명
GetClickedKeys ( ) : Keys[]

Get the currently clicked keys.

GetCurrentState ( ) : KeyboardState

Get the current keyboard input state.

GetPastState ( ) : KeyboardState

Get the past keyboard input state.

GetPressedKeys ( ) : Keys[]

Get the currently pressed keys.

IsKeyClicked ( Keys key ) : bool

Get if the specified key is clicked. This means that the key is down right now but wasn't always pressed down.

IsKeyPressed ( Keys key ) : bool

Get if the specified key is pressed. This means that the key is down right now.

비공개 메소드들

메소드 설명
Keyboard ( InputManager manager ) : System

메소드 상세

GetClickedKeys() 공개 메소드

Get the currently clicked keys.
public GetClickedKeys ( ) : Keys[]
리턴 Keys[]

GetCurrentState() 공개 메소드

Get the current keyboard input state.
public GetCurrentState ( ) : KeyboardState
리턴 Microsoft.Xna.Framework.Input.KeyboardState

GetPastState() 공개 메소드

Get the past keyboard input state.
public GetPastState ( ) : KeyboardState
리턴 Microsoft.Xna.Framework.Input.KeyboardState

GetPressedKeys() 공개 메소드

Get the currently pressed keys.
public GetPressedKeys ( ) : Keys[]
리턴 Keys[]

IsKeyClicked() 공개 메소드

Get if the specified key is clicked. This means that the key is down right now but wasn't always pressed down.
public IsKeyClicked ( Keys key ) : bool
key Keys The key to check if clicked.
리턴 bool

IsKeyPressed() 공개 메소드

Get if the specified key is pressed. This means that the key is down right now.
public IsKeyPressed ( Keys key ) : bool
key Keys The key to check if pressed.
리턴 bool