Class NaturalMouseKbdListener.GaiaGestureListener

  • All Implemented Interfaces:
    com.badlogic.gdx.input.GestureDetector.GestureListener
    Enclosing class:
    NaturalMouseKbdListener

    protected static class NaturalMouseKbdListener.GaiaGestureListener
    extends com.badlogic.gdx.input.GestureDetector.GestureAdapter
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected GaiaGestureListener()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean fling​(float velocityX, float velocityY, int button)  
      boolean longPress​(float x, float y)  
      boolean pan​(float x, float y, float deltaX, float deltaY)  
      boolean pinch​(com.badlogic.gdx.math.Vector2 initialPointer1, com.badlogic.gdx.math.Vector2 initialPointer2, com.badlogic.gdx.math.Vector2 pointer1, com.badlogic.gdx.math.Vector2 pointer2)  
      boolean tap​(float x, float y, int count, int button)  
      boolean touchDown​(float x, float y, int pointer, int button)  
      boolean zoom​(float initialDistance, float distance)  
      • Methods inherited from class com.badlogic.gdx.input.GestureDetector.GestureAdapter

        panStop, pinchStop
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GaiaGestureListener

        protected GaiaGestureListener()
    • Method Detail

      • touchDown

        public boolean touchDown​(float x,
                                 float y,
                                 int pointer,
                                 int button)
        Specified by:
        touchDown in interface com.badlogic.gdx.input.GestureDetector.GestureListener
        Overrides:
        touchDown in class com.badlogic.gdx.input.GestureDetector.GestureAdapter
      • tap

        public boolean tap​(float x,
                           float y,
                           int count,
                           int button)
        Specified by:
        tap in interface com.badlogic.gdx.input.GestureDetector.GestureListener
        Overrides:
        tap in class com.badlogic.gdx.input.GestureDetector.GestureAdapter
      • longPress

        public boolean longPress​(float x,
                                 float y)
        Specified by:
        longPress in interface com.badlogic.gdx.input.GestureDetector.GestureListener
        Overrides:
        longPress in class com.badlogic.gdx.input.GestureDetector.GestureAdapter
      • fling

        public boolean fling​(float velocityX,
                             float velocityY,
                             int button)
        Specified by:
        fling in interface com.badlogic.gdx.input.GestureDetector.GestureListener
        Overrides:
        fling in class com.badlogic.gdx.input.GestureDetector.GestureAdapter
      • pan

        public boolean pan​(float x,
                           float y,
                           float deltaX,
                           float deltaY)
        Specified by:
        pan in interface com.badlogic.gdx.input.GestureDetector.GestureListener
        Overrides:
        pan in class com.badlogic.gdx.input.GestureDetector.GestureAdapter
      • zoom

        public boolean zoom​(float initialDistance,
                            float distance)
        Specified by:
        zoom in interface com.badlogic.gdx.input.GestureDetector.GestureListener
        Overrides:
        zoom in class com.badlogic.gdx.input.GestureDetector.GestureAdapter
      • pinch

        public boolean pinch​(com.badlogic.gdx.math.Vector2 initialPointer1,
                             com.badlogic.gdx.math.Vector2 initialPointer2,
                             com.badlogic.gdx.math.Vector2 pointer1,
                             com.badlogic.gdx.math.Vector2 pointer2)
        Specified by:
        pinch in interface com.badlogic.gdx.input.GestureDetector.GestureListener
        Overrides:
        pinch in class com.badlogic.gdx.input.GestureDetector.GestureAdapter