Annotation Interface OnMouseButtonAction


@Retention(RUNTIME) @Target(METHOD) public @interface OnMouseButtonAction
Annotates a field that calls a method if a mouse button is pressed or released. Expects to call a method that takes both a MouseButtonType and a boolean parameter; an error will be thrown if this is not the case.

The MouseButtonType is the button the action happened on, and the boolean is true on press and false on release.

Author:
Matthew Tropiano