Package com.jme3.input.android
Class AndroidJoyInput14
java.lang.Object
com.jme3.input.android.AndroidJoyInput
com.jme3.input.android.AndroidJoyInput14
AndroidJoyInput14 extends AndroidJoyInput
 to include support for physical joysticks/gamepads.- 
Field SummaryFields inherited from class com.jme3.input.android.AndroidJoyInputdisableSensors, inputHandler, joystickListFields 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.Joystick[]loadJoysticks(InputManager inputManager) Loads a list of joysticks from the system.booleanonGenericMotion(android.view.MotionEvent event) booleanonKey(android.view.KeyEvent event) voidPauses the joystick device listeners to save battery life if they are not needed.voidResumes the joystick device listeners.Methods inherited from class com.jme3.input.android.AndroidJoyInputaddEvent, getInputTimeNanos, initialize, isInitialized, loadSettings, setInputListener, setJoyRumble, setView, update
- 
Constructor Details- 
AndroidJoyInput14
 
- 
- 
Method Details- 
pauseJoystickspublic void pauseJoysticks()Pauses the joystick device listeners to save battery life if they are not needed. Used to pause when the activity pauses- Overrides:
- pauseJoysticksin class- AndroidJoyInput
 
- 
resumeJoystickspublic void resumeJoysticks()Resumes the joystick device listeners. Used to resume when the activity comes to the top of the stack- Overrides:
- resumeJoysticksin class- AndroidJoyInput
 
- 
destroypublic void destroy()Description copied from interface:InputCeases listening to events from the device.- Specified by:
- destroyin interface- Input
- Overrides:
- destroyin class- AndroidJoyInput
 
- 
loadJoysticksDescription copied from interface:JoyInputLoads a list of joysticks from the system.- Specified by:
- loadJoysticksin interface- JoyInput
- Overrides:
- loadJoysticksin class- AndroidJoyInput
- Parameters:
- inputManager- The input manager requesting to load joysticks
- Returns:
- A list of joysticks that are installed.
 
- 
onGenericMotionpublic boolean onGenericMotion(android.view.MotionEvent event) 
- 
onKeypublic boolean onKey(android.view.KeyEvent event) 
 
-