From 9462369f0ae41c43eab6701d877cded94d4c4a86 Mon Sep 17 00:00:00 2001 From: FlamedDogo99 <96555444+FlamedDogo99@users.noreply.github.com> Date: Sat, 1 Jun 2024 21:25:12 -0500 Subject: [PATCH] Fixed incorrect keybind --- eaglermobile.user.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/eaglermobile.user.js b/eaglermobile.user.js index 53d8529..5e11385 100644 --- a/eaglermobile.user.js +++ b/eaglermobile.user.js @@ -10,7 +10,7 @@ // // @match https://eaglercraft.com/mc/* // -// @version 2.0 +// @version 2.1 // @updateURL https://raw.githubusercontent.com/FlamedDogo99/EaglerMobile/main/eaglermobile.user.js // // @run-at document-start @@ -259,7 +259,8 @@ function insertCanvasElements() { startTouchX = null; }, false); - + strafeRightButton.classList.add("hide"); + strafeLeftButton.classList.add("hide"); document.body.appendChild(forwardButton); @@ -396,22 +397,22 @@ function insertCanvasElements() { screenshotButton.style.cssText = "top: 0vh; margin: auto; left: 16vh; right: 0vh; width: 8vh; height: 8vh;" screenshotButton.addEventListener("touchstart", function(e) { keyEvent("f", "keydown"); - keyEvent("3", "keydown"); + keyEvent("2", "keydown"); }, false); screenshotButton.addEventListener("touchend", function(e) { keyEvent("f", "keyup"); - keyEvent("3", "keyup"); + keyEvent("2", "keyup"); }, false); document.body.appendChild(screenshotButton); let coordinatesButton = createTouchButton("coordinatesButton", "inGame"); coordinatesButton.style.cssText = "top: 0vh; margin: auto; left: 32vh; right: 0vh; width: 8vh; height: 8vh;" coordinatesButton.addEventListener("touchstart", function(e) { keyEvent("f", "keydown"); - keyEvent("2", "keydown"); + keyEvent("3", "keydown"); }, false); coordinatesButton.addEventListener("touchend", function(e) { - keyEvent("5", "keyup"); - keyEvent("2", "keyup"); + keyEvent("f", "keyup"); + keyEvent("3", "keyup"); }, false); document.body.appendChild(coordinatesButton); }