Interface KeyTranslator<K>

Type Parameters:
K - K - the type of the values
All Known Implementing Classes:
DefaultKeyTranslator

public interface KeyTranslator<K>
KeyTranslator interface, used to translate virtual key codes to values
  • Method Summary

    Modifier and Type
    Method
    Description
    translate(int key)
    Translate an virtual key code to a value
    Get an untranslatable value
  • Method Details

    • translate

      K translate(int key)
      Translate an virtual key code to a value
      Parameters:
      key - - the virtual key code
      Returns:
      the translated value
    • untranslatable

      K untranslatable()
      Get an untranslatable value
      Returns:
      an untranslatable value