mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-18 12:30:11 -07:00
Upload sources
This commit is contained in:
parent
86083535a8
commit
e1ce65eb29
2887 changed files with 85891 additions and 0 deletions
48
app/src/main/java/net/kdt/pojavlaunch/MinecraftGLView.java
Normal file
48
app/src/main/java/net/kdt/pojavlaunch/MinecraftGLView.java
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
package net.kdt.pojavlaunch;
|
||||
|
||||
import android.content.*;
|
||||
import android.util.*;
|
||||
import android.view.*;
|
||||
import com.kdt.glsupport.*;
|
||||
|
||||
public class MinecraftGLView extends GLTextureView
|
||||
{
|
||||
private View.OnTouchListener mTouchListener;
|
||||
public MinecraftGLView(Context context) {
|
||||
super(context);
|
||||
//setPreserveEGLContextOnPause(true);
|
||||
}
|
||||
|
||||
public MinecraftGLView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
//setPreserveEGLContextOnPause(true);
|
||||
}
|
||||
/*
|
||||
@Override
|
||||
public void surfaceDestroyed(SurfaceHolder surfaceHolder) {
|
||||
//super.surfaceDestroyed(surfaceHolder);
|
||||
System.out.println("Surface destroyed!");
|
||||
//new Throwable("Surface destroyed!").printStackTrace();
|
||||
}
|
||||
*/
|
||||
@Override
|
||||
public void setOnTouchListener(View.OnTouchListener l)
|
||||
{
|
||||
super.setOnTouchListener(l);
|
||||
mTouchListener = l;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setOnClickListener(View.OnClickListener l)
|
||||
{
|
||||
super.setOnClickListener(l);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onCapturedPointerEvent(MotionEvent event)
|
||||
{
|
||||
mTouchListener.onTouch(this, event);
|
||||
return super.onCapturedPointerEvent(event);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue