Package com.jme3.input.lwjgl
Class JInputJoyInput
java.lang.Object
com.jme3.input.lwjgl.JInputJoyInput
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields inherited from interface com.jme3.input.JoyInputAXIS_POV_X, AXIS_POV_Y
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddestroy()Ceases listening to events from the device.longvoidInitializes the native side to listen into events from the device.booleanJoystick[]loadJoysticks(InputManager inputManager) Loads a list of joysticks from the system.voidsetInputListener(RawInputListener listener) Sets the input listener to receive events from this device.voidsetJoyRumble(int joyId, float amount) Causes the joystick atjoyIdindex to rumble with the given amount.voidupdate()Queries the device for input.
- 
Constructor Details- 
JInputJoyInputpublic JInputJoyInput()
 
- 
- 
Method Details- 
setJoyRumblepublic void setJoyRumble(int joyId, float amount) Description copied from interface:JoyInputCauses the joystick atjoyIdindex to rumble with the given amount.- Specified by:
- setJoyRumblein interface- JoyInput
- Parameters:
- joyId- The joystick index
- amount- Rumble amount. Should be between 0 and 1.
 
- 
loadJoysticksDescription copied from interface:JoyInputLoads a list of joysticks from the system.- Specified by:
- loadJoysticksin interface- JoyInput
- Parameters:
- inputManager- The input manager requesting to load joysticks
- Returns:
- A list of joysticks that are installed.
 
- 
initializepublic void initialize()Description copied from interface:InputInitializes the native side to listen into events from the device.- Specified by:
- initializein interface- Input
 
- 
updatepublic void update()Description copied from interface:InputQueries the device for input. All events should be sent to the RawInputListener set with setInputListener.
- 
destroypublic void destroy()Description copied from interface:InputCeases listening to events from the device.
- 
isInitializedpublic boolean isInitialized()- Specified by:
- isInitializedin interface- Input
- Returns:
- True if the device has been initialized and not destroyed.
- See Also:
 
- 
setInputListenerDescription copied from interface:InputSets the input listener to receive events from this device. The appropriate events should be dispatched through the callbacks in RawInputListener.- Specified by:
- setInputListenerin interface- Input
- Parameters:
- listener- the desired listener
 
- 
getInputTimeNanospublic long getInputTimeNanos()- Specified by:
- getInputTimeNanosin interface- Input
- Returns:
- The current absolute time as nanoseconds. This time is expected to be relative to the time given in InputEvents time property.
 
 
-