C# Класс Fusion.Engine.Input.Keyboard

Наследование: Fusion.Engine.Common.GameModule
Показать файл Открыть проект

Открытые методы

Метод Описание
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