Skip to content

Commit

Permalink
Added mouse click to send ENTER key, so it can be used to close text …
Browse files Browse the repository at this point in the history
…windows.
  • Loading branch information
lanceewing committed Apr 11, 2024
1 parent c6af537 commit c12329b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ private boolean updateAGIMouse(Vector2 touchXY, int button, boolean buttonDown)
// Only if it is within the AGI Screen do we set the mouse vars.
if (buttonDown) {
gameScreen.getAgileRunner().getVariableData().setMouseButton(button + 1);
getUserInput().keyDown(Keys.ENTER);
} else {
gameScreen.getAgileRunner().getVariableData().setMouseButton(0);
}
Expand Down

0 comments on commit c12329b

Please sign in to comment.