|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.input.lwjgl.JInputJoyInput
public class JInputJoyInput
Field Summary |
---|
Fields inherited from interface com.jme3.input.JoyInput |
---|
AXIS_POV_X, AXIS_POV_Y |
Constructor Summary | |
---|---|
JInputJoyInput()
|
Method Summary | |
---|---|
void |
destroy()
Ceases listening to events from the device. |
long |
getInputTimeNanos()
|
void |
initialize()
Initializes the native side to listen into events from the device. |
boolean |
isInitialized()
|
Joystick[] |
loadJoysticks(InputManager inputManager)
Loads a list of joysticks from the system. |
void |
setInputListener(RawInputListener listener)
Sets the input listener to receive events from this device. |
void |
setJoyRumble(int joyId,
float amount)
Causes the joystick at joyId index to rumble with
the given amount. |
void |
update()
Queries the device for input. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JInputJoyInput()
Method Detail |
---|
public void setJoyRumble(int joyId, float amount)
JoyInput
joyId
index to rumble with
the given amount.
setJoyRumble
in interface JoyInput
joyId
- The joystick indexamount
- Rumble amount. Should be between 0 and 1.public Joystick[] loadJoysticks(InputManager inputManager)
JoyInput
loadJoysticks
in interface JoyInput
inputManager
- The input manager requesting to load joysticks
public void initialize()
Input
initialize
in interface Input
public void update()
Input
update
in interface Input
Input.setInputListener(com.jme3.input.RawInputListener)
public void destroy()
Input
destroy
in interface Input
public boolean isInitialized()
isInitialized
in interface Input
Input.initialize()
,
Input.destroy()
public void setInputListener(RawInputListener listener)
Input
setInputListener
in interface Input
public long getInputTimeNanos()
getInputTimeNanos
in interface Input
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |