C# Class ThoNohT.NohBoard.Hooking.KeyboardState

A class representing the current state of the keyboard. I.e. which buttons are pressed.
Afficher le fichier Open project: ThoNohT/NohBoard

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
KeyIsUp ( int keyCode ) : bool

Checks whether the specified key is up.

Method Details

AddPressedElement() public static méthode

Adds the specified mouse keycode to the list of pressed keys.
public static AddPressedElement ( int keyCode ) : void
keyCode int The keycode to add.
Résultat void

CheckKeys() public static méthode

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
Résultat void

RemovePressedElement() public static méthode

Removes the specified keycode from the list of pressed keys.
public static RemovePressedElement ( int keyCode ) : void
keyCode int The keycode to remove.
Résultat void