mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-21 09:01:56 -07:00
sort some code
This commit is contained in:
parent
3b124c55ca
commit
becb6d0681
1 changed files with 17 additions and 14 deletions
|
|
@ -329,13 +329,14 @@ public class BaseMainActivity extends LoggableActivity {
|
|||
|
||||
minecraftGLView.setFocusable(true);
|
||||
// minecraftGLView.setEGLContextClientVersion(2);
|
||||
|
||||
glTouchListener = new OnTouchListener(){
|
||||
private boolean isTouchInHotbar = false;
|
||||
private int hotbarX, hotbarY;
|
||||
private int scrollInitialX, scrollInitialY;
|
||||
@Override
|
||||
public boolean onTouch(View p1, MotionEvent e)
|
||||
{
|
||||
|
||||
{
|
||||
int mptrIndex = -1;
|
||||
for (int i = 0; i < e.getPointerCount(); i++) {
|
||||
|
|
@ -352,6 +353,8 @@ public class BaseMainActivity extends LoggableActivity {
|
|||
CallbackBridge.sendCursorPos(x, y);
|
||||
return true; // event handled sucessfully
|
||||
}//if index IS -1, continue handling as an usual touch event
|
||||
}
|
||||
|
||||
// System.out.println("Pre touch, isTouchInHotbar=" + Boolean.toString(isTouchInHotbar) + ", action=" + MotionEvent.actionToString(e.getActionMasked()));
|
||||
int x = ((int) e.getX()) / scaleFactor;
|
||||
int y = ((int) e.getY()) / scaleFactor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue