Back to project page GlassSensorTest.
The source code is released under:
Apache License
If you think the Android project GlassSensorTest listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.prt.sensor; /*from w w w. ja v a 2 s. c o m*/ import com.badlogic.gdx.input.GestureDetector.GestureListener; import com.badlogic.gdx.math.Vector2; public class MyGestureListener implements GestureListener{ private final TestSensor testSensor; public MyGestureListener(TestSensor testSensor) { this.testSensor = testSensor; } @Override public boolean touchDown(float x, float y, int pointer, int button) { return false; } @Override public boolean tap(float x, float y, int count, int button) { testSensor.toggleFile(); return false; } @Override public boolean longPress(float x, float y) { return false; } @Override public boolean fling(float velocityX, float velocityY, int button) { return false; } @Override public boolean pan(float x, float y, float deltaX, float deltaY) { return false; } @Override public boolean panStop(float x, float y, int pointer, int button) { return false; } @Override public boolean zoom (float originalDistance, float currentDistance){ return false; } @Override public boolean pinch (Vector2 initialFirstPointer, Vector2 initialSecondPointer, Vector2 firstPointer, Vector2 secondPointer){ return false; } }