mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Remove broken scroll gesture on Android
This commit is contained in:
parent
c18d0f2035
commit
076638f13b
6 changed files with 0 additions and 36 deletions
|
|
@ -113,11 +113,6 @@ public class GodotLib {
|
|||
*/
|
||||
public static native void doubleTap(int buttonMask, int x, int y);
|
||||
|
||||
/**
|
||||
* Forward scroll events from the main thread to the GL thread.
|
||||
*/
|
||||
public static native void scroll(int x, int y);
|
||||
|
||||
/**
|
||||
* Forward accelerometer sensor events from the main thread to the GL thread.
|
||||
* @see android.hardware.SensorEventListener#onSensorChanged(SensorEvent)
|
||||
|
|
|
|||
|
|
@ -79,15 +79,6 @@ public class GodotGestureHandler extends GestureDetector.SimpleOnGestureListener
|
|||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {
|
||||
//Log.i("GodotGesture", "onScroll");
|
||||
final int x = Math.round(distanceX);
|
||||
final int y = Math.round(distanceY);
|
||||
GodotLib.scroll(x, y);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onFling(MotionEvent event1, MotionEvent event2, float velocityX, float velocityY) {
|
||||
//Log.i("GodotGesture", "onFling");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue