protected class GlfwJoystickInput.GlfwJoystick extends AbstractJoystick
| Constructor and Description |
|---|
GlfwJoystick(InputManager inputManager,
JoyInput joyInput,
int joyId,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAxis(int index,
JoystickAxis axis) |
protected void |
addButton(JoystickButton button) |
JoystickAxis |
getPovXAxis()
Returns the POV X axis for this joystick.
|
JoystickAxis |
getPovYAxis()
Returns the POV Y axis for this joystick.
|
JoystickAxis |
getXAxis()
Returns the X axis for this joystick.
|
int |
getXAxisIndex()
Gets the index number for the X axis on the joystick.
|
JoystickAxis |
getYAxis()
Returns the Y axis for this joystick.
|
int |
getYAxisIndex()
Gets the index number for the Y axis on the joystick.
|
addAxis, assignAxis, assignButton, getAxes, getAxis, getAxisCount, getButton, getButtonCount, getButtons, getInputManager, getJoyId, getJoyInput, getName, rumble, toStringpublic GlfwJoystick(InputManager inputManager, JoyInput joyInput, int joyId, java.lang.String name)
public void addAxis(int index,
JoystickAxis axis)
protected void addButton(JoystickButton button)
addButton in class AbstractJoystickpublic JoystickAxis getXAxis()
JoystickE.g. for most gamepads, the left control stick X axis will be returned.
public JoystickAxis getYAxis()
JoystickE.g. for most gamepads, the left control stick Y axis will be returned.
public JoystickAxis getPovXAxis()
Joystickpublic JoystickAxis getPovYAxis()
Joystickpublic int getXAxisIndex()
AbstractJoystickE.g. for most gamepads, the left control stick X axis will be returned.
getXAxisIndex in interface JoystickgetXAxisIndex in class AbstractJoystickJoystick.assignAxis(java.lang.String, java.lang.String, int)public int getYAxisIndex()
AbstractJoystickE.g. for most gamepads, the left control stick Y axis will be returned.
getYAxisIndex in interface JoystickgetYAxisIndex in class AbstractJoystickJoystick.assignAxis(java.lang.String, java.lang.String, int)