Skip to content

Commit

Permalink
trim click log
Browse files Browse the repository at this point in the history
  • Loading branch information
GameParrot committed Dec 25, 2024
1 parent c44895b commit bf55c57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ void ImGUIOptions::initImgui() {
void ImGUIOptions::addClick(int button, bool supressed) {
std::string newStr = (button == 1 ? "[Left] " : "[Right] ") + std::string((supressed ? "Supressed a DC" : "Mouse down"));
clickLog = newStr + "\n" + clickLog;
if(clickLog.length() > 10000) {
clickLog = clickLog.substr(0, 9000);
}
if(Conf::showLogWindow) {
updateLogWindow();
}
Expand Down

0 comments on commit bf55c57

Please sign in to comment.