Class AndroidJoyInput14

java.lang.Object
com.jme3.input.android.AndroidJoyInput
com.jme3.input.android.AndroidJoyInput14
All Implemented Interfaces:
Input, JoyInput

public class AndroidJoyInput14 extends AndroidJoyInput
AndroidJoyInput14 extends AndroidJoyInput to include support for physical joysticks/gamepads.
  • Constructor Details

  • 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:
      pauseJoysticks in class AndroidJoyInput
    • resumeJoysticks

      public void resumeJoysticks()
      Resumes the joystick device listeners. Used to resume when the activity comes to the top of the stack
      Overrides:
      resumeJoysticks in class AndroidJoyInput
    • destroy

      public void destroy()
      Description copied from interface: Input
      Ceases listening to events from the device.
      Specified by:
      destroy in interface Input
      Overrides:
      destroy in class AndroidJoyInput
    • loadJoysticks

      public Joystick[] loadJoysticks(InputManager inputManager)
      Description copied from interface: JoyInput
      Loads a list of joysticks from the system.
      Specified by:
      loadJoysticks in interface JoyInput
      Overrides:
      loadJoysticks in class AndroidJoyInput
      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)