@Retention(value=RUNTIME)
@Target(value=METHOD)
@Documented
public @interface ButtonHandler
ButtonHandler
is an annotation that should be applied to all methods that handle
joystick button presses. It specifies the button that should be responded to, the joystick
that the button should come from, and if the method should be called on the press or release
of the button.Modifier and Type | Required Element and Description |
---|---|
JoystickButton |
button
Gets the button that should be responded to.
|
Modifier and Type | Optional Element and Description |
---|---|
int |
joystick
Gets the joystick that the button should come from.
|
ButtonHandler.PressType |
type
Gets the type of press that the method should be called in response to.
|
public abstract JoystickButton button
public abstract int joystick
public abstract ButtonHandler.PressType type