C# Class Fusion.Engine.Input.Keyboard

Inheritance: Fusion.Engine.Common.GameModule
Mostra file Open project: demiurghg/FusionEngine

Public Methods

Method Description
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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
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

Method Details

Bind() public method

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

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetConfiguration() public method

Gets keyboard configuration.
public GetConfiguration ( ) : IEnumerable
return IEnumerable

Initialize() public method

public Initialize ( ) : void
return void

IsBound() public method

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

IsKeyDown() public method

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

IsKeyUp() public method

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

SetConfiguration() public method

public SetConfiguration ( IEnumerable configuration ) : void
configuration IEnumerable
return void

Unbind() public method

Unbind commands from key.
public Unbind ( Keys key ) : void
key Keys
return void