Package com.jme3.input
Interface JoyInput
- All Superinterfaces:
 Input
- All Known Implementing Classes:
 AndroidJoyInput,AndroidJoyInput14,GlfwJoystickInput,JInputJoyInput
A specific API for interfacing with joysticks or gaming controllers.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe X axis for POV (point of view hat).static final intThe Y axis for POV (point of view hat). - 
Method Summary
Modifier and TypeMethodDescriptionJoystick[]loadJoysticks(InputManager inputManager) Loads a list of joysticks from the system.voidsetJoyRumble(int joyId, float amount) Causes the joystick atjoyIdindex to rumble with the given amount.Methods inherited from interface com.jme3.input.Input
destroy, getInputTimeNanos, initialize, isInitialized, setInputListener, update 
- 
Field Details
- 
AXIS_POV_X
static final int AXIS_POV_XThe X axis for POV (point of view hat).- See Also:
 
 - 
AXIS_POV_Y
static final int AXIS_POV_YThe Y axis for POV (point of view hat).- See Also:
 
 
 - 
 - 
Method Details
- 
setJoyRumble
void setJoyRumble(int joyId, float amount) Causes the joystick atjoyIdindex to rumble with the given amount.- Parameters:
 joyId- The joystick indexamount- Rumble amount. Should be between 0 and 1.
 - 
loadJoysticks
Loads a list of joysticks from the system.- Parameters:
 inputManager- The input manager requesting to load joysticks- Returns:
 - A list of joysticks that are installed.
 
 
 -