Skip to content

Commit

Permalink
output return character during in-game chat (#68)
Browse files Browse the repository at this point in the history
This causes a return character to be appended to a chat message during a game and after the player hits enter to return to the game.
  • Loading branch information
tra committed Jun 8, 2020
1 parent 4c39a87 commit a8352bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/game/CPlayerManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ void CPlayerManagerImpl::HandleEvent(SDL_Event &event) {
SDL_StartTextInput();
}
else {
GameKeyPress('\r'); // spit out a return char in-game
SDL_StopTextInput();
}
}
Expand Down

0 comments on commit a8352bb

Please sign in to comment.