feat: Scrollable chat (#1493)

* chat scrolling

* allow escape to close chat instead of opening pause
This commit is contained in:
DrPerkyLegit
2026-04-12 23:50:16 -04:00
committed by GitHub
parent 744048f455
commit c7014f6b18
7 changed files with 58 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "UIController.h"
#include <ChatScreen.h>
#include "UI.h"
#include "UIScene.h"
#include "UIControl_Slider.h"
@@ -1428,6 +1429,9 @@ void UIController::handleKeyPress(unsigned int iPad, unsigned int key)
}
#endif
if (key == 4) ChatScreen::setWheelValue(1);
if (key == 5) ChatScreen::setWheelValue(-1);
if(pressed) app.DebugPrintf("Pressed %d\n",key);
if(released) app.DebugPrintf("Released %d\n",key);
// Repeat handling