public class Joystick
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BUTTON_1 |
static int |
BUTTON_10 |
static int |
BUTTON_2 |
static int |
BUTTON_3 |
static int |
BUTTON_4 |
static int |
BUTTON_5 |
static int |
BUTTON_6 |
static int |
BUTTON_7 |
static int |
BUTTON_8 |
static int |
BUTTON_9 |
static int |
BUTTON_X_MINUS |
static int |
BUTTON_X_PLUS |
static int |
BUTTON_X_SHIFT_MINUS |
static int |
BUTTON_X_SHIFT_PLUS |
static int |
BUTTON_Y_MINUS |
static int |
BUTTON_Y_PLUS |
static int |
BUTTON_Y_SHIFT_MINUS |
static int |
BUTTON_Y_SHIFT_PLUS |
Constructor and Description |
---|
Joystick() |
Modifier and Type | Method and Description |
---|---|
JoystickListener |
getJoystickListener() |
boolean |
getShiftLock() |
SimpleVariable |
getShiftLockVariable() |
void |
onInputReport(HidDevice source,
byte[] reportData,
int reportLength) |
void |
setJoystickListener(JoystickListener listener) |
void |
setShiftLock(boolean shiftStick) |
public static final int BUTTON_1
public static final int BUTTON_2
public static final int BUTTON_3
public static final int BUTTON_4
public static final int BUTTON_5
public static final int BUTTON_6
public static final int BUTTON_7
public static final int BUTTON_8
public static final int BUTTON_9
public static final int BUTTON_10
public static final int BUTTON_X_MINUS
public static final int BUTTON_X_PLUS
public static final int BUTTON_Y_MINUS
public static final int BUTTON_Y_PLUS
public static final int BUTTON_X_SHIFT_MINUS
public static final int BUTTON_X_SHIFT_PLUS
public static final int BUTTON_Y_SHIFT_MINUS
public static final int BUTTON_Y_SHIFT_PLUS
public SimpleVariable getShiftLockVariable()
public void setShiftLock(boolean shiftStick)
public boolean getShiftLock()
public void onInputReport(HidDevice source, byte[] reportData, int reportLength)
public void setJoystickListener(JoystickListener listener)
public JoystickListener getJoystickListener()