protected class JInputJoyInput.JInputJoystick extends AbstractJoystick
Constructor and Description |
---|
JInputJoystick(InputManager inputManager,
JoyInput joyInput,
net.java.games.input.Controller controller,
int joyId,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
addAxis(net.java.games.input.Component comp) |
protected void |
addButton(net.java.games.input.Component comp) |
protected void |
addComponent(net.java.games.input.Component comp) |
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, addButton, assignAxis, assignButton, getAxes, getAxis, getAxisCount, getButton, getButtonCount, getButtons, getInputManager, getJoyId, getJoyInput, getName, rumble, toString
public JInputJoystick(InputManager inputManager, JoyInput joyInput, net.java.games.input.Controller controller, int joyId, java.lang.String name)
protected void addComponent(net.java.games.input.Component comp)
protected void addButton(net.java.games.input.Component comp)
protected void addAxis(net.java.games.input.Component comp)
public JoystickAxis getXAxis()
Joystick
E.g. for most gamepads, the left control stick X axis will be returned.
public JoystickAxis getYAxis()
Joystick
E.g. for most gamepads, the left control stick Y axis will be returned.
public JoystickAxis getPovXAxis()
Joystick
public JoystickAxis getPovYAxis()
Joystick
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)