C# Class Fusion.Engine.Input.Keyboard

Inheritance: Fusion.Engine.Common.GameModule
Afficher le fichier Open project: demiurghg/FusionEngine

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode 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 méthode

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

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetConfiguration() public méthode

Gets keyboard configuration.
public GetConfiguration ( ) : IEnumerable
Résultat IEnumerable

Initialize() public méthode

public Initialize ( ) : void
Résultat void

IsBound() public méthode

Indicates that given key is already bound.
public IsBound ( Keys key ) : bool
key Keys
Résultat bool

IsKeyDown() public méthode

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

IsKeyUp() public méthode

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

SetConfiguration() public méthode

public SetConfiguration ( IEnumerable configuration ) : void
configuration IEnumerable
Résultat void

Unbind() public méthode

Unbind commands from key.
public Unbind ( Keys key ) : void
key Keys
Résultat void