Package com.jme3.input.lwjgl
Class GlfwJoystickInput.GlfwJoystick
java.lang.Object
com.jme3.input.AbstractJoystick
com.jme3.input.lwjgl.GlfwJoystickInput.GlfwJoystick
- All Implemented Interfaces:
Joystick
- Enclosing class:
- GlfwJoystickInput
-
Constructor Summary
ConstructorDescriptionGlfwJoystick
(InputManager inputManager, JoyInput joyInput, int joyId, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAxis
(int index, JoystickAxis axis) protected void
addButton
(JoystickButton button) 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, assignAxis, assignButton, getAxes, getAxis, getAxisCount, getButton, getButtonCount, getButtons, getInputManager, getJoyId, getJoyInput, getName, rumble, toString
-
Constructor Details
-
GlfwJoystick
-
-
Method Details
-
addAxis
-
addButton
- Overrides:
addButton
in classAbstractJoystick
-
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:
-