C# Класс ThoNohT.NohBoard.Hooking.KeyboardState

A class representing the current state of the keyboard. I.e. which buttons are pressed.
Показать файл Открыть проект

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

Метод Описание
AddPressedElement ( int keyCode ) : void

Adds the specified mouse keycode to the list of pressed keys.

CheckKeys ( ) : void

Checks the state of all keys and removes the ones that are no longer pressed from the list of pressed keys.

RemovePressedElement ( int keyCode ) : void

Removes the specified keycode from the list of pressed keys.

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

Метод Описание
KeyIsUp ( int keyCode ) : bool

Checks whether the specified key is up.

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

AddPressedElement() публичный статический Метод

Adds the specified mouse keycode to the list of pressed keys.
public static AddPressedElement ( int keyCode ) : void
keyCode int The keycode to add.
Результат void

CheckKeys() публичный статический Метод

Checks the state of all keys and removes the ones that are no longer pressed from the list of pressed keys.
public static CheckKeys ( ) : void
Результат void

RemovePressedElement() публичный статический Метод

Removes the specified keycode from the list of pressed keys.
public static RemovePressedElement ( int keyCode ) : void
keyCode int The keycode to remove.
Результат void