Class KeyNames

java.lang.Object
com.jme3.input.KeyNames

public class KeyNames extends Object
Translate key codes (from 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 Details

    • KeyNames

      public KeyNames()
  • Method Details

    • getName

      public static String getName(int keyId)
      Obtain a descriptive name for the specified key code. Key codes are defined in KeyInput.
      Parameters:
      keyId - a key code (≥0, ≤255)
      Returns:
      the corresponding name, or null if not named