C# Класс SGDE.Input.Keyboard

A keyboard input device.
Наследование: InputComponent
Показать файл Открыть проект

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

Метод Описание
GetClickedKeys ( ) : Keys[]

Get the currently clicked keys.

GetCurrentState ( ) : KeyboardState

Get the current keyboard input state.

GetPastState ( ) : KeyboardState

Get the past keyboard input state.

GetPressedKeys ( ) : Keys[]

Get the currently pressed keys.

IsKeyClicked ( Keys key ) : bool

Get if the specified key is clicked. This means that the key is down right now but wasn't always pressed down.

IsKeyPressed ( Keys key ) : bool

Get if the specified key is pressed. This means that the key is down right now.

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

Метод Описание
Keyboard ( InputManager manager ) : System

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

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

Get the currently clicked keys.
public GetClickedKeys ( ) : Keys[]
Результат Keys[]

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

Get the current keyboard input state.
public GetCurrentState ( ) : KeyboardState
Результат Microsoft.Xna.Framework.Input.KeyboardState

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

Get the past keyboard input state.
public GetPastState ( ) : KeyboardState
Результат Microsoft.Xna.Framework.Input.KeyboardState

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

Get the currently pressed keys.
public GetPressedKeys ( ) : Keys[]
Результат Keys[]

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

Get if the specified key is clicked. This means that the key is down right now but wasn't always pressed down.
public IsKeyClicked ( Keys key ) : bool
key Keys The key to check if clicked.
Результат bool

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

Get if the specified key is pressed. This means that the key is down right now.
public IsKeyPressed ( Keys key ) : bool
key Keys The key to check if pressed.
Результат bool