public class AndroidJoyInput14 extends AndroidJoyInput
AndroidJoyInput14
extends AndroidJoyInput
to include support for physical joysticks/gamepads.disableSensors, inputHandler, joystickList
AXIS_POV_X, AXIS_POV_Y
Constructor and Description |
---|
AndroidJoyInput14(AndroidInputHandler inputHandler) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Ceases listening to events from the device.
|
Joystick[] |
loadJoysticks(InputManager inputManager)
Loads a list of joysticks from the system.
|
boolean |
onGenericMotion(android.view.MotionEvent event) |
boolean |
onKey(android.view.KeyEvent event) |
void |
pauseJoysticks()
Pauses the joystick device listeners to save battery life if they are not needed.
|
void |
resumeJoysticks()
Resumes the joystick device listeners.
|
addEvent, getInputTimeNanos, initialize, isInitialized, loadSettings, setInputListener, setJoyRumble, setView, update
public AndroidJoyInput14(AndroidInputHandler inputHandler)
public void pauseJoysticks()
pauseJoysticks
in class AndroidJoyInput
public void resumeJoysticks()
resumeJoysticks
in class AndroidJoyInput
public void destroy()
Input
destroy
in interface Input
destroy
in class AndroidJoyInput
public Joystick[] loadJoysticks(InputManager inputManager)
JoyInput
loadJoysticks
in interface JoyInput
loadJoysticks
in class AndroidJoyInput
inputManager
- The input manager requesting to load joystickspublic boolean onGenericMotion(android.view.MotionEvent event)
public boolean onKey(android.view.KeyEvent event)