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 Summary
Fields inherited from class com.jme3.input.android.AndroidJoyInput
disableSensors, inputHandler, joystickListFields inherited from interface com.jme3.input.JoyInput
AXIS_POV_X, AXIS_POV_Y -
Constructor Summary
Constructors -
Method Summary
Modifier 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.AndroidJoyInput
addEvent, getInputTimeNanos, initialize, isInitialized, loadSettings, setInputListener, setJoyRumble, setView, update
-
Constructor Details
-
AndroidJoyInput14
-
-
Method Details
-
pauseJoysticks
public 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 classAndroidJoyInput
-
resumeJoysticks
public void resumeJoysticks()Resumes the joystick device listeners. Used to resume when the activity comes to the top of the stack- Overrides:
resumeJoysticksin classAndroidJoyInput
-
destroy
public void destroy()Description copied from interface:InputCeases listening to events from the device.- Specified by:
destroyin interfaceInput- Overrides:
destroyin classAndroidJoyInput
-
loadJoysticks
Description copied from interface:JoyInputLoads a list of joysticks from the system.- Specified by:
loadJoysticksin interfaceJoyInput- Overrides:
loadJoysticksin classAndroidJoyInput- Parameters:
inputManager- The input manager requesting to load joysticks- Returns:
- A list of joysticks that are installed.
-
onGenericMotion
public boolean onGenericMotion(android.view.MotionEvent event) -
onKey
public boolean onKey(android.view.KeyEvent event)
-