Skip to content

Commit

Permalink
Clearing virtual keyboard state between game executions.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanceewing committed May 2, 2024
1 parent 9fe7e79 commit d7c335f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/com/agifans/agile/GameScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ public void hide() {
public void initGame(AppConfigItem appConfigItem, boolean startedByUser) {
this.appConfigItem = appConfigItem;
this.startedByUser = startedByUser;
this.gameScreenInputProcessor.reset();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ public GameScreenInputProcessor(GameScreen gameScreen, DialogHandler dialogHandl
}
}

/**
* Resets anything that needs resetting between multiple game executions.
*/
public void reset() {
this.keyboardType = KeyboardType.OFF;
}

/**
* Called when the screen was touched or a mouse button was pressed. The button
* parameter will be {@link Buttons#LEFT} on iOS.
Expand Down

0 comments on commit d7c335f

Please sign in to comment.