CvWaitKey Method (Int32) OpenCvSharp Class Library
Waits for key event infinitely (delay<=0) or for "delay" milliseconds. Returns the code of the pressed key or -1 if no key were pressed until the specified timeout has elapsed.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static int WaitKey(
	int delay
)

Parameters

delay
Type: SystemInt32
Delay in milliseconds.

Return Value

Type: Int32
key code
See Also

Reference