Package | Description |
---|---|
io.github.thunderbots.lightning.control |
The
io.github.thunderbots.lightning.control package exposes classes and methods
that can be used to respond to controls and joystick inputs for the robot. |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<JoystickButton,java.util.List<java.lang.reflect.Method>> |
JoystickMonitor.handlers
The
Methods that are called when buttons specified in the
ButtonHandler annotation are updated. |
private java.util.List<JoystickButton> |
JoystickMonitor.lastButtons
The latest 'snapshot' of the buttons on the gamepad.
|
Modifier and Type | Method and Description |
---|---|
static JoystickButton |
JoystickButton.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JoystickButton[] |
JoystickButton.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<JoystickButton> |
Joystick.toButtonList()
Generates a list of
JoystickButton s that represent all the buttons that are
currently pressed on this joystick. |