public class KeyNames
extends java.lang.Object
KeyInput) to descriptive names.
This class has only static methods, yet it can be instantiated. Here's why:
It used to be that there was no static getName() method, so the only way to
get names was to instantiate a KeyNames. As a consequence, we have
applications and libraries that rely on being able to instantiate this class.| Constructor and Description |
|---|
KeyNames() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getName(int keyId)
Obtain a descriptive name for the specified key code.
|
public static java.lang.String getName(int keyId)
KeyInput.keyId - a key code (≥0, ≤255)