StrongJoshua / libgdx-inGameConsole

A LibGdx library that allows a developer to add a console (similar to how it is featured in Source games) to their game.
https://www.strongjoshua.net/projects/games/libgdx-ingame-console
Apache License 2.0
131 stars 35 forks source link

Repeating the same command using up arrow and enter #43

Closed AkashaP closed 5 years ago

AkashaP commented 6 years ago

Minor suggestion. When using a standard GUIConsole, the index increments in CommandHistory when pressing the up arrow regardless if I press enter.

I would like to just keep pressing up and enter like in a traditional console to keep spamming the same command. Right now if I type 2 different commands and press up and enter multiple times, the second time it will switch to the first command I typed instead of the one I wanted to repeat.

Btw, thanks a lot for this repo, I find it immensely useful! :+1:

AkashaP commented 6 years ago

i managed to fix this, going to try to figure out how to pull request lol

yay my first pull request lmao