Package com.jme3.input.lwjgl
Class JInputJoyInput.JInputJoystick
java.lang.Object
com.jme3.input.AbstractJoystick
com.jme3.input.lwjgl.JInputJoyInput.JInputJoystick
- All Implemented Interfaces:
Joystick
- Enclosing class:
- JInputJoyInput
-
Constructor Summary
ConstructorDescriptionJInputJoystick
(InputManager inputManager, JoyInput joyInput, net.java.games.input.Controller controller, int joyId, String name) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) Returns the POV X axis for this joystick.Returns the POV Y axis for this joystick.getXAxis()
Returns the X axis for this joystick.int
Gets the index number for the X axis on the joystick.getYAxis()
Returns the Y axis for this joystick.int
Gets the index number for the Y axis on the joystick.Methods inherited from class com.jme3.input.AbstractJoystick
addAxis, addButton, assignAxis, assignButton, getAxes, getAxis, getAxisCount, getButton, getButtonCount, getButtons, getInputManager, getJoyId, getJoyInput, getName, rumble, toString
-
Constructor Details
-
JInputJoystick
public JInputJoystick(InputManager inputManager, JoyInput joyInput, net.java.games.input.Controller controller, int joyId, String name)
-
-
Method Details
-
addComponent
protected void addComponent(net.java.games.input.Component comp) -
addButton
protected void addButton(net.java.games.input.Component comp) -
addAxis
protected void addAxis(net.java.games.input.Component comp) -
getXAxis
Description copied from interface:Joystick
Returns the X axis for this joystick.E.g. for most gamepads, the left control stick X axis will be returned.
- Returns:
- the pre-existing instance
- See Also:
-
getYAxis
Description copied from interface:Joystick
Returns the Y axis for this joystick.E.g. for most gamepads, the left control stick Y axis will be returned.
- Returns:
- the pre-existing instance
- See Also:
-
getPovXAxis
Description copied from interface:Joystick
Returns the POV X axis for this joystick. This is a convenience axis providing an x-axis subview of the HAT axis.- Returns:
- the pre-existing instance
- See Also:
-
getPovYAxis
Description copied from interface:Joystick
Returns the POV Y axis for this joystick. This is a convenience axis providing a y-axis subview of the HAT axis.- Returns:
- the pre-existing instance
- See Also:
-
getXAxisIndex
public int getXAxisIndex()Description copied from class:AbstractJoystick
Gets the index number for the X axis on the joystick.E.g. for most gamepads, the left control stick X axis will be returned.
- Specified by:
getXAxisIndex
in interfaceJoystick
- Overrides:
getXAxisIndex
in classAbstractJoystick
- Returns:
- The axis index for the X axis for this joystick.
- See Also:
-
getYAxisIndex
public int getYAxisIndex()Description copied from class:AbstractJoystick
Gets the index number for the Y axis on the joystick.E.g. for most gamepads, the left control stick Y axis will be returned.
- Specified by:
getYAxisIndex
in interfaceJoystick
- Overrides:
getYAxisIndex
in classAbstractJoystick
- Returns:
- The axis index for the Y axis for this joystick.
- See Also:
-