Skip to content

Commit

Permalink
Removed experimental mouse movement.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanceewing committed Mar 10, 2024
1 parent b3545c1 commit b5c6945
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions core/src/main/java/com/agifans/agile/Interpreter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down Expand Up @@ -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 {
Expand All @@ -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));
}
Expand Down

0 comments on commit b5c6945

Please sign in to comment.