feat: Scrollable chat (#1493)

This commit is contained in:
DrPerkyLegit
2026-04-13 00:42:04 -05:00
committed by itsRevela
parent 5e7ad7333e
commit 6c572d4940
7 changed files with 58 additions and 10 deletions

View File

@@ -16,6 +16,7 @@ private:
static std::vector<wstring> s_chatHistory;
static int s_historyIndex;
static wstring s_historyDraft;
static int s_chatIndex;
static const wstring allowedChars;
static bool isAllowedChatChar(wchar_t c);
@@ -28,6 +29,9 @@ public:
virtual void handleHistoryUp();
virtual void handleHistoryDown();
static int getChatIndex();
static void correctChatIndex(int newChatIndex);
static void setWheelValue(int wheel);
protected:
void keyPressed(wchar_t ch, int eventKey);
public: