Still trying to fix white focus

This commit is contained in:
khanhduytran0 2020-12-06 18:25:38 +07:00
parent 5da7fbb676
commit ba017126ea

View file

@ -170,6 +170,8 @@ public class BaseMainActivity extends LoggableActivity {
// Mouse pointer part
//this.mouseToggleButton = findButton(R.id.control_togglemouse);
this.touchPad = (LinearLayout) findViewById(R.id.main_touchpad);
touchPad.setFocusable(false);
this.mousePointer = (ImageView) findViewById(R.id.main_mouse_pointer);
this.mousePointer.post(new Runnable(){
@ -321,7 +323,7 @@ public class BaseMainActivity extends LoggableActivity {
minecraftGLView.setFocusable(false);
minecraftGLView.setFocusableInTouchMode(false);
// minecraftGLView.setEGLContextClientVersion(2);
glTouchListener = new OnTouchListener(){
private boolean isTouchInHotbar = false;
private int hotbarX, hotbarY;