libgdx API

com.badlogic.gdx.input
Class GestureDetector.GestureAdapter

java.lang.Object
  extended by com.badlogic.gdx.input.GestureDetector.GestureAdapter
All Implemented Interfaces:
GestureDetector.GestureListener
Enclosing class:
GestureDetector

public static class GestureDetector.GestureAdapter
extends java.lang.Object
implements GestureDetector.GestureListener


Constructor Summary
GestureDetector.GestureAdapter()
           
 
Method Summary
 boolean fling(float velocityX, float velocityY)
           
 boolean longPress(int x, int y)
           
 boolean pan(int x, int y, int deltaX, int deltaY)
           
 boolean pinch(Vector2 initialFirstPointer, Vector2 initialSecondPointer, Vector2 firstPointer, Vector2 secondPointer)
           
 boolean tap(int x, int y, int count)
           
 boolean touchDown(int x, int y, int pointer)
           
 boolean zoom(float originalDistance, float currentDistance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GestureDetector.GestureAdapter

public GestureDetector.GestureAdapter()
Method Detail

touchDown

public boolean touchDown(int x,
                         int y,
                         int pointer)
Specified by:
touchDown in interface GestureDetector.GestureListener

tap

public boolean tap(int x,
                   int y,
                   int count)
Specified by:
tap in interface GestureDetector.GestureListener

longPress

public boolean longPress(int x,
                         int y)
Specified by:
longPress in interface GestureDetector.GestureListener

fling

public boolean fling(float velocityX,
                     float velocityY)
Specified by:
fling in interface GestureDetector.GestureListener

pan

public boolean pan(int x,
                   int y,
                   int deltaX,
                   int deltaY)
Specified by:
pan in interface GestureDetector.GestureListener

zoom

public boolean zoom(float originalDistance,
                    float currentDistance)
Specified by:
zoom in interface GestureDetector.GestureListener

pinch

public boolean pinch(Vector2 initialFirstPointer,
                     Vector2 initialSecondPointer,
                     Vector2 firstPointer,
                     Vector2 secondPointer)
Specified by:
pinch in interface GestureDetector.GestureListener

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)