GetKeyboardKeyState


Checks if the specified keyboard key is down and if it is toggled.

Syntax

C++
Python
 
def GetKeyboardKeyState(
	*,
	inKeyCode: int = 0
)
-> (
	outIsDown: bool,
	outIsToggled: bool
)

Parameters

Name Type Default Description
Input value inKeyCode int 0 Virtual key code. See documentation for a complete table.
Output value outIsDown bool Informs if the specified keyboard key is being pressed at the moment.
Output value outIsToggled bool Informs about the state. Important for keys such as CapsLock.