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, toString
public 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 AbstractJoystick
public JoystickAxis getXAxis()
Joystick
E.g. for most gamepads, the left control stick X axis will be returned.
JoystickAxis.assignAxis(java.lang.String, java.lang.String)
public JoystickAxis getYAxis()
Joystick
E.g. for most gamepads, the left control stick Y axis will be returned.
JoystickAxis.assignAxis(java.lang.String, java.lang.String)
public JoystickAxis getPovXAxis()
Joystick
JoystickAxis.assignAxis(java.lang.String, java.lang.String)
public JoystickAxis getPovYAxis()
Joystick
JoystickAxis.assignAxis(java.lang.String, java.lang.String)
public int getXAxisIndex()
AbstractJoystick
E.g. for most gamepads, the left control stick X axis will be returned.
getXAxisIndex
in interface Joystick
getXAxisIndex
in class AbstractJoystick
Joystick.assignAxis(java.lang.String, java.lang.String, int)
public int getYAxisIndex()
AbstractJoystick
E.g. for most gamepads, the left control stick Y axis will be returned.
getYAxisIndex
in interface Joystick
getYAxisIndex
in class AbstractJoystick
Joystick.assignAxis(java.lang.String, java.lang.String, int)