State of a key.

Variables

@:value(cast 0)@:enum@:implinlineread onlyRelease:KeyState = 0

The key is released.

@:value(cast 1)@:enum@:implinlineread onlyPress:KeyState = 1

The key is pressed.

@:value(cast 2)@:enum@:implinlineread onlyRepeat:KeyState = 2

The key was held down until it repeated.