C# Класс Artemis.Engine.Input.KeyboardInput

The main keyboard input provider class.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
IsClicked ( KeyCombination keys ) : bool

Check if a combination of keys have been clicked (i.e. has been pressed for exactly 1 frame).

IsClicked ( Keys key ) : bool

Check if a key has been clicked (i.e. has been pressed for exactly 1 frame).

IsHeld ( KeyCombination keys ) : bool

Check if a combination of keys have been pressed for any number of keys.

IsHeld ( Keys key ) : bool

Check if a key has been pressed for any number of keys.

IsHeldFor ( KeyCombination keys, int frames ) : bool

Check if a combination of keys have been pressed for exactly the given number of frames.

IsHeldFor ( Keys key, int frames ) : bool

Check if a key has been pressed for exactly the given number of frames.

IsHeldForAtleast ( KeyCombination keys, int frames ) : bool

Check if a combination of keys have been pressed for at least the given number of frames.

IsHeldForAtleast ( Keys key, int frames ) : bool

Check if a key has been pressed for at least the given number of frames.

IsIdleFor ( int frames ) : bool

Check if the keyboard has been idle for exactly the given number of frames.

IsIdleForAtleast ( int frames ) : bool

Check if the keyboard has been idle for at least the given number of frames.

IsReleased ( KeyCombination keys ) : bool

Check if a combination of keys have been released (i.e. has been unpressed for exactly 1 frame).

IsReleased ( Keys key ) : bool

Check if a key has been released (i.e. has been unpressed for exactly 1 frame).

IsUnheld ( KeyCombination keys ) : bool

Check if a combination of keys have been unpressed for any number of frames.

IsUnheld ( Keys key ) : bool

Check if a key has been unpressed for any number of frames.

IsUnheldFor ( KeyCombination keys, int frames ) : bool

Check if a combination of keys have been unpressed for exactly the given number of frames.

IsUnheldFor ( Keys key, int frames ) : bool

Check if a key has been unpressed for exactly the given number of frames.

IsUnheldForAtleast ( KeyCombination keys, int frames ) : bool

Check if a combination of keys have been unpressed for at least the given number of frames.

IsUnheldForAtleast ( Keys key, int frames ) : bool

Check if a key has been unpressed for at least the given number of frames.

Приватные методы

Метод Описание
KeyboardInput ( ) : System.Collections.Generic
Update ( ) : void

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

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

Check if a combination of keys have been clicked (i.e. has been pressed for exactly 1 frame).
public IsClicked ( KeyCombination keys ) : bool
keys KeyCombination
Результат bool

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

Check if a key has been clicked (i.e. has been pressed for exactly 1 frame).
public IsClicked ( Keys key ) : bool
key Keys
Результат bool

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

Check if a combination of keys have been pressed for any number of keys.
public IsHeld ( KeyCombination keys ) : bool
keys KeyCombination
Результат bool

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

Check if a key has been pressed for any number of keys.
public IsHeld ( Keys key ) : bool
key Keys
Результат bool

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

Check if a combination of keys have been pressed for exactly the given number of frames.
public IsHeldFor ( KeyCombination keys, int frames ) : bool
keys KeyCombination
frames int
Результат bool

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

Check if a key has been pressed for exactly the given number of frames.
public IsHeldFor ( Keys key, int frames ) : bool
key Keys
frames int
Результат bool

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

Check if a combination of keys have been pressed for at least the given number of frames.
public IsHeldForAtleast ( KeyCombination keys, int frames ) : bool
keys KeyCombination
frames int
Результат bool

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

Check if a key has been pressed for at least the given number of frames.
public IsHeldForAtleast ( Keys key, int frames ) : bool
key Keys
frames int
Результат bool

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

Check if the keyboard has been idle for exactly the given number of frames.
public IsIdleFor ( int frames ) : bool
frames int
Результат bool

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

Check if the keyboard has been idle for at least the given number of frames.
public IsIdleForAtleast ( int frames ) : bool
frames int
Результат bool

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

Check if a combination of keys have been released (i.e. has been unpressed for exactly 1 frame).
public IsReleased ( KeyCombination keys ) : bool
keys KeyCombination
Результат bool

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

Check if a key has been released (i.e. has been unpressed for exactly 1 frame).
public IsReleased ( Keys key ) : bool
key Keys
Результат bool

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

Check if a combination of keys have been unpressed for any number of frames.
public IsUnheld ( KeyCombination keys ) : bool
keys KeyCombination
Результат bool

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

Check if a key has been unpressed for any number of frames.
public IsUnheld ( Keys key ) : bool
key Keys
Результат bool

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

Check if a combination of keys have been unpressed for exactly the given number of frames.
public IsUnheldFor ( KeyCombination keys, int frames ) : bool
keys KeyCombination
frames int
Результат bool

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

Check if a key has been unpressed for exactly the given number of frames.
public IsUnheldFor ( Keys key, int frames ) : bool
key Keys
frames int
Результат bool

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

Check if a combination of keys have been unpressed for at least the given number of frames.
public IsUnheldForAtleast ( KeyCombination keys, int frames ) : bool
keys KeyCombination
frames int
Результат bool

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

Check if a key has been unpressed for at least the given number of frames.
public IsUnheldForAtleast ( Keys key, int frames ) : bool
key Keys
frames int
Результат bool