com.badlogic.gdx.backends.android
Class AndroidInputThreePlus

java.lang.Object
  extended by com.badlogic.gdx.backends.android.AndroidInput
      extended by com.badlogic.gdx.backends.android.AndroidInputThreePlus
All Implemented Interfaces:
android.view.View.OnGenericMotionListener, android.view.View.OnKeyListener, android.view.View.OnTouchListener, Input

public class AndroidInputThreePlus
extends AndroidInput
implements android.view.View.OnGenericMotionListener

Subclass of AndroidInput, used on Androd +3.x to get generic motion events for things like gampads/joysticks and so on.

Author:
mzechner

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.badlogic.gdx.Input
Input.Buttons, Input.Keys, Input.Orientation, Input.Peripheral, Input.TextInputListener
 
Field Summary
 
Fields inherited from class com.badlogic.gdx.backends.android.AndroidInput
accelerometerAvailable
 
Constructor Summary
AndroidInputThreePlus(Application activity, android.content.Context context, Object view, AndroidApplicationConfiguration config)
           
 
Method Summary
 void addGenericMotionListener(android.view.View.OnGenericMotionListener listener)
           
 boolean onGenericMotion(android.view.View view, android.view.MotionEvent event)
           
 
Methods inherited from class com.badlogic.gdx.backends.android.AndroidInput
addKeyListener, cancelVibrate, getAccelerometerX, getAccelerometerY, getAccelerometerZ, getAzimuth, getCurrentEventTime, getDeltaX, getDeltaX, getDeltaY, getDeltaY, getFreePointerIndex, getInputProcessor, getNativeOrientation, getPitch, getPlaceholderTextInput, getRoll, getRotation, getRotationMatrix, getTextInput, getX, getX, getY, getY, isButtonPressed, isCursorCatched, isKeyPressed, isPeripheralAvailable, isTouched, isTouched, justTouched, lookUpPointerIndex, onDrop, onKey, onTap, onTouch, setCatchBackKey, setCatchMenuKey, setCursorCatched, setCursorImage, setCursorPosition, setInputProcessor, setOnscreenKeyboardVisible, vibrate, vibrate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndroidInputThreePlus

public AndroidInputThreePlus(Application activity,
                             android.content.Context context,
                             Object view,
                             AndroidApplicationConfiguration config)
Method Detail

onGenericMotion

public boolean onGenericMotion(android.view.View view,
                               android.view.MotionEvent event)
Specified by:
onGenericMotion in interface android.view.View.OnGenericMotionListener

addGenericMotionListener

public void addGenericMotionListener(android.view.View.OnGenericMotionListener listener)


Copyright © 2013. All Rights Reserved.