C# 클래스 Fusion.Engine.Input.Keyboard

상속: Fusion.Engine.Common.GameModule
파일 보기 프로젝트 열기: demiurghg/FusionEngine

공개 메소드들

메소드 설명
Bind ( Keys key, string keyDownCommand, string keyUpCommand ) : void

Binds command to key.

GetConfiguration ( ) : IEnumerable

Gets keyboard configuration.

Initialize ( ) : void

IsBound ( Keys key ) : bool

Indicates that given key is already bound.

IsKeyDown ( Keys key ) : bool

Returns whether a specified key is currently being pressed.

IsKeyUp ( Keys key ) : bool

Returns whether a specified key is currently not pressed.

SetConfiguration ( IEnumerable configuration ) : void

Unbind ( Keys key ) : void

Unbind commands from key.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
Keyboard ( Game Game ) : System

ctor

device_FormKeyDown ( object sender, InputDevice e ) : void
device_FormKeyPress ( object sender, InputDevice e ) : void
device_FormKeyUp ( object sender, InputDevice e ) : void
device_KeyDown ( object sender, InputDevice e ) : void
device_KeyUp ( object sender, InputDevice e ) : void

메소드 상세

Bind() 공개 메소드

Binds command to key.
public Bind ( Keys key, string keyDownCommand, string keyUpCommand ) : void
key Keys
keyDownCommand string
keyUpCommand string
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GetConfiguration() 공개 메소드

Gets keyboard configuration.
public GetConfiguration ( ) : IEnumerable
리턴 IEnumerable

Initialize() 공개 메소드

public Initialize ( ) : void
리턴 void

IsBound() 공개 메소드

Indicates that given key is already bound.
public IsBound ( Keys key ) : bool
key Keys
리턴 bool

IsKeyDown() 공개 메소드

Returns whether a specified key is currently being pressed.
public IsKeyDown ( Keys key ) : bool
key Keys
리턴 bool

IsKeyUp() 공개 메소드

Returns whether a specified key is currently not pressed.
public IsKeyUp ( Keys key ) : bool
key Keys
리턴 bool

SetConfiguration() 공개 메소드

public SetConfiguration ( IEnumerable configuration ) : void
configuration IEnumerable
리턴 void

Unbind() 공개 메소드

Unbind commands from key.
public Unbind ( Keys key ) : void
key Keys
리턴 void