console: handleEvent dispatch a handleTextInput/HistoryUp/Down/Tab

This commit is contained in:
2026-05-17 15:29:20 +02:00
parent 8cca35c9a5
commit 19c7b58cba
2 changed files with 88 additions and 72 deletions
+6
View File
@@ -85,6 +85,12 @@ class Console {
void updateResizeAnimation(float delta_time); // Animació d'altura quan msg_lines_ canvia
void updateOpenCloseAnimation(float delta_time); // Animació RISING/VANISHING
// Sub-pasos de handleEvent() (extrets per reduir complexitat cognitiva)
void handleTextInput(const SDL_Event& event); // Insereix caràcters imprimibles a input_line_
void handleHistoryUp(); // Navegar enrere a l'historial
void handleHistoryDown(); // Navegar cap al present a l'historial
void handleTab(); // Autocompletat per TAB (comandes o sub-args)
// Objetos de renderizado
std::shared_ptr<Text> text_;
std::shared_ptr<Surface> surface_;