Microsoft SDK for Java

DhEventInfo.getChar

Tests for the presence of any key and returns that keypress.

Syntax

final public int getChar()

Return Value

Returns the key code of the currently pressed key (or 0 if no key is pressed).

© 1999 Microsoft Corporation. All rights reserved. Terms of use.