public interface XboxControllerListener
Modifier and Type | Method and Description |
---|---|
void |
back(boolean pressed)
Notification when button BACK is pressed or released.
|
void |
buttonA(boolean pressed)
Notification when button A is pressed or released.
|
void |
buttonB(boolean pressed)
Notification when button B is pressed or released.
|
void |
buttonX(boolean pressed)
Notification when button X is pressed or released.
|
void |
buttonY(boolean pressed)
Notification when button Y is pressed or released.
|
void |
dpad(int direction,
boolean pressed)
Notification when the direction pad is actuated.
|
void |
isConnected(boolean connected)
Notification when the connection to the controller is lost or reestablished.
|
void |
leftShoulder(boolean pressed)
Notification when button LEFTSHOULDER is pressed or released.
|
void |
leftThumb(boolean pressed)
Notification when button LEFTTHUMB is pressed or released.
|
void |
leftThumbDirection(double direction)
Notification when the direction of the left thumb changes.
|
void |
leftThumbMagnitude(double magnitude)
Notification when the magnitude of the left thumb changes.
|
void |
leftTrigger(double value)
Notification when the LEFTTRIGGER value changes.
|
void |
rightShoulder(boolean pressed)
Notification when button RIGHTSHOULDER is pressed or released.
|
void |
rightThumb(boolean pressed)
Notification when button RIGHTTHUMB is pressed or released.
|
void |
rightThumbDirection(double direction)
Notification when the direction of the right thumb changes.
|
void |
rightThumbMagnitude(double magnitude)
Notification when the magnitude of the rigth thumb changes.
|
void |
rightTrigger(double value)
Notification when the RIGHTTRIGGER value changes.
|
void |
start(boolean pressed)
Notification when button START is pressed or released.
|
void buttonA(boolean pressed)
pressed
- true, when button is pressed; false, when releasedvoid buttonB(boolean pressed)
pressed
- true, when button is pressed; false, when releasedvoid buttonX(boolean pressed)
pressed
- true, when button is pressed; false, when releasedvoid buttonY(boolean pressed)
pressed
- true, when button is pressed; false, when releasedvoid back(boolean pressed)
pressed
- true, when button is pressed; false, when releasedvoid start(boolean pressed)
pressed
- true, when button is pressed; false, when releasedvoid leftShoulder(boolean pressed)
pressed
- true, when button is pressed; false, when releasedvoid rightShoulder(boolean pressed)
pressed
- true, when button is pressed; false, when releasedvoid leftThumb(boolean pressed)
pressed
- true, when button is pressed; false, when releasedvoid rightThumb(boolean pressed)
pressed
- true, when button is pressed; false, when releasedvoid dpad(int direction, boolean pressed)
direction
- one of the values 0..7pressed
- true, when button is pressed; false, when releasedvoid leftTrigger(double value)
value
- the new value 0..1void rightTrigger(double value)
value
- the new value 0..1void leftThumbMagnitude(double magnitude)
magnitude
- the new magnitude 0..1void leftThumbDirection(double direction)
direction
- the new direction 0..360 degrees (clockwise, 0 to north)void rightThumbMagnitude(double magnitude)
magnitude
- the new magnitude 0..1void rightThumbDirection(double direction)
direction
- the new direction 0..360 degrees (clockwise, 0 to north)void isConnected(boolean connected)
connected
- true, if the connection is reestablished; false, if lost