C# Класс SadConsole.Input.KeyboardInfo

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
InitialRepeatDelay float
RepeatDelay float

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

Метод Описание
Clear ( ) : void

Clears the KeysPressed, KeysDown, KeysReleased collections.

IsKeyDown ( Keys key ) : bool

Returns true if the key is in the KeysDown collection.

IsKeyReleased ( Keys key ) : bool

Returns true when they is in the KeysReleased collection.

IsKeyUp ( Keys key ) : bool

Returns true if the key is not in the KeysDown collection.

KeyboardInfo ( ) : System.Collections.Generic
ProcessKeys ( GameTime gameTime ) : void

Reads the keyboard state using the GameTime from the update frame.

Описание методов

Clear() публичный Метод

Clears the KeysPressed, KeysDown, KeysReleased collections.
public Clear ( ) : void
Результат void

IsKeyDown() публичный Метод

Returns true if the key is in the KeysDown collection.
public IsKeyDown ( Keys key ) : bool
key Keys The key to check.
Результат bool

IsKeyReleased() публичный Метод

Returns true when they is in the KeysReleased collection.
public IsKeyReleased ( Keys key ) : bool
key Keys The key to check.
Результат bool

IsKeyUp() публичный Метод

Returns true if the key is not in the KeysDown collection.
public IsKeyUp ( Keys key ) : bool
key Keys The key to check.
Результат bool

KeyboardInfo() публичный Метод

public KeyboardInfo ( ) : System.Collections.Generic
Результат System.Collections.Generic

ProcessKeys() публичный Метод

Reads the keyboard state using the GameTime from the update frame.
public ProcessKeys ( GameTime gameTime ) : void
gameTime GameTime
Результат void

Описание свойств

InitialRepeatDelay публичное свойство

The initial delay after a key is first pressed before it is included a second time (while held down) in the KeysPressed collection.
public float InitialRepeatDelay
Результат float

RepeatDelay публичное свойство

How often a key is included in the KeysPressed collection after the InitialRepeatDelay time has passed.
public float RepeatDelay
Результат float