From b5c6945edc87a0821ad5284a48f550a7fe4edb49 Mon Sep 17 00:00:00 2001 From: Lance Ewing Date: Sun, 10 Mar 2024 17:46:27 +0000 Subject: [PATCH] Removed experimental mouse movement. --- core/src/main/java/com/agifans/agile/Interpreter.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/src/main/java/com/agifans/agile/Interpreter.java b/core/src/main/java/com/agifans/agile/Interpreter.java index ff00b83..d0ed61b 100644 --- a/core/src/main/java/com/agifans/agile/Interpreter.java +++ b/core/src/main/java/com/agifans/agile/Interpreter.java @@ -235,6 +235,7 @@ private void updateObjectDirections() { * @return */ private byte getMouseClickDirection(boolean holdKeyMode) { + // EXPERIMENTAL method. Not used currently. byte direction = 0; // Is the left mouse button down? And it isn't an AGI Mouse game? @@ -348,9 +349,6 @@ private void processUserInput() { if (userInput.keys((int)Keys.END)) direction = 6; if (userInput.keys((int)Keys.LEFT)) direction = 7; if (userInput.keys((int)Keys.HOME)) direction = 8; - if (direction == 0) { - direction = getMouseClickDirection(true); - } state.setVar(Defines.EGODIR, direction); } else { @@ -364,9 +362,6 @@ private void processUserInput() { if (userInput.keys((int)Keys.END) && !userInput.oldKeys((int)Keys.END)) direction = 6; if (userInput.keys((int)Keys.LEFT) && !userInput.oldKeys((int)Keys.LEFT)) direction = 7; if (userInput.keys((int)Keys.HOME) && !userInput.oldKeys((int)Keys.HOME)) direction = 8; - if (direction == 0) { - direction = getMouseClickDirection(false); - } if (direction > 0) { state.setVar(Defines.EGODIR, (state.getVar(Defines.EGODIR) == direction ? (byte)0 : direction)); }