C# 클래스 ThoNohT.NohBoard.Hooking.KeyboardState

A class representing the current state of the keyboard. I.e. which buttons are pressed.
파일 보기 프로젝트 열기: ThoNohT/NohBoard

공개 메소드들

메소드 설명
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