|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JoyInput
A specific API for interfacing with joysticks or gaming controllers.
Field Summary | |
---|---|
static int |
AXIS_POV_X
The X axis for POV (point of view hat). |
static int |
AXIS_POV_Y
The Y axis for POV (point of view hat). |
Method Summary | |
---|---|
Joystick[] |
loadJoysticks(InputManager inputManager)
Loads a list of joysticks from the system. |
void |
setJoyRumble(int joyId,
float amount)
Causes the joystick at joyId index to rumble with
the given amount. |
Methods inherited from interface com.jme3.input.Input |
---|
destroy, getInputTimeNanos, initialize, isInitialized, setInputListener, update |
Field Detail |
---|
static final int AXIS_POV_X
static final int AXIS_POV_Y
Method Detail |
---|
void setJoyRumble(int joyId, float amount)
joyId
index to rumble with
the given amount.
joyId
- The joystick indexamount
- Rumble amount. Should be between 0 and 1.Joystick[] loadJoysticks(InputManager inputManager)
inputManager
- The input manager requesting to load joysticks
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |