C# Class ThoNohT.NohBoard.Hooking.KeyboardState

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

Public Methods

Method 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

Method Description
KeyIsUp ( int keyCode ) : bool

Checks whether the specified key is up.

Method Details

AddPressedElement() public static method

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

CheckKeys() public static method

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
return void

RemovePressedElement() public static method

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