Annotation Interface InputKey


@Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface InputKey
Annotates a field that sets if a key is pressed or not. Expects to write to a boolean value; an error will be thrown if this is not the case.

Public fields or methods that are "setters" can be annotated with this.

Author:
Matthew Tropiano
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details

    • value

      KeyType value
      Returns:
      the corresponding key.