Class AndroidJoyInput14

  • All Implemented Interfaces:
    com.jme3.input.Input, com.jme3.input.JoyInput

    public class AndroidJoyInput14
    extends AndroidJoyInput
    AndroidJoyInput14 extends AndroidJoyInput to include support for physical joysticks/gamepads.
    Author:
    iwgeric
    • Method Detail

      • 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()
        Specified by:
        destroy in interface com.jme3.input.Input
        Overrides:
        destroy in class AndroidJoyInput
      • loadJoysticks

        public com.jme3.input.Joystick[] loadJoysticks​(com.jme3.input.InputManager inputManager)
        Specified by:
        loadJoysticks in interface com.jme3.input.JoyInput
        Overrides:
        loadJoysticks in class AndroidJoyInput
      • onGenericMotion

        public boolean onGenericMotion​(android.view.MotionEvent event)
      • onKey

        public boolean onKey​(android.view.KeyEvent event)