Back to Adaptive Vision Library website

You are here: Start » Function Reference » User Input » GetKeyboardKeyState

GetKeyboardKeyState


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

Syntax

void avl::GetKeyboardKeyState
(
	const int inKeyCode,
	bool& outIsDown,
	bool& outIsToggled
)

Parameters

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

Remarks

For complete list of virtual key codes, please follow the link below:
https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx

See Also