mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-19 09:39:25 -04:00
Fix scroll crashing 1.13+
Fix secondary pointers not affecting the touchbar
This commit is contained in:
parent
6488b611ef
commit
e896229e45
@ -340,11 +340,13 @@ public class MinecraftGLView extends TextureView {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case MotionEvent.ACTION_POINTER_DOWN: // 5
|
case MotionEvent.ACTION_POINTER_DOWN: // 5
|
||||||
|
//TODO Hey we could have some sort of middle click detection ?
|
||||||
|
|
||||||
scrollLastInitialX = e.getX();
|
scrollLastInitialX = e.getX();
|
||||||
scrollLastInitialY = e.getY();
|
scrollLastInitialY = e.getY();
|
||||||
//Checking if we are pressing the hotbar to select the item
|
//Checking if we are pressing the hotbar to select the item
|
||||||
hudKeyHandled = handleGuiBar((int)e.getX(e.getPointerCount()-1), (int) e.getY(e.getPointerCount()-1));
|
hudKeyHandled = handleGuiBar((int)e.getX(e.getPointerCount()-1), (int) e.getY(e.getPointerCount()-1));
|
||||||
if(hudKeyHandled == -1){
|
if(hudKeyHandled != -1){
|
||||||
sendKeyPress(hudKeyHandled);
|
sendKeyPress(hudKeyHandled);
|
||||||
if(hasDoubleTapped && hudKeyHandled == lastHotbarKey){
|
if(hasDoubleTapped && hudKeyHandled == lastHotbarKey){
|
||||||
//Prevent double tapping Event on two different slots
|
//Prevent double tapping Event on two different slots
|
||||||
|
Loading…
x
Reference in New Issue
Block a user