public class Xbox360Controller
extends java.lang.Object
Constructor and Description |
---|
Xbox360Controller(int joystick_id)
Set up a new joystick
|
Modifier and Type | Method and Description |
---|---|
boolean |
A() |
boolean |
B() |
boolean |
BackButton() |
int |
DPad() |
boolean |
DPadDown() |
boolean |
DPadLeft() |
boolean |
DPadRight() |
boolean |
DPadUp() |
boolean |
LB() |
double |
LStick_X() |
double |
LStick_Y() |
boolean |
LStickButton() |
double |
LTrigger() |
boolean |
RB() |
double |
RStick_X() |
double |
RStick_Y() |
boolean |
RStickButton() |
double |
RTrigger() |
void |
rumbleOff()
Turn off all rumble motors
|
void |
setDeadzone(double _deadzone)
Update the deadzone for all joystick axes
|
void |
setLeftRumble(float value)
Adjust the rumbliness of the left rumble motor.
|
void |
setRightRumble(float value)
Adjust the rumbliness of the right rumble motor.
|
boolean |
StartButton() |
boolean |
X() |
boolean |
Y() |
public Xbox360Controller(int joystick_id)
joystick_id
- The index to pass to WPIlib for the joystick. Usually 0 is driver1, 1 is
driver2, and so onpublic void setDeadzone(double _deadzone)
_deadzone
- minimum non-zero output to allow from the joystickpublic void setLeftRumble(float value)
value
- Strength of Rumble, 0 is min and 1 is max.public void setRightRumble(float value)
value
- Strength of Rumble, 0 is min and 1 is max.public void rumbleOff()
public boolean A()
public boolean B()
public boolean X()
public boolean Y()
public boolean LB()
public boolean RB()
public boolean BackButton()
public boolean StartButton()
public boolean LStickButton()
public boolean RStickButton()
public double LStick_X()
public double LStick_Y()
public double LTrigger()
public double RTrigger()
public double RStick_X()
public double RStick_Y()
public int DPad()
public boolean DPadUp()
public boolean DPadRight()
public boolean DPadDown()
public boolean DPadLeft()