console: handleEvent dispatch a handleTextInput/HistoryUp/Down/Tab
This commit is contained in:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user