Moved textbox input code out of InputManager

This commit is contained in:
Yousef Khadadeh 2026-04-03 23:02:33 +03:00
parent df3a78be1f
commit 262bf23bce
19 changed files with 343 additions and 329 deletions

View file

@ -344,6 +344,20 @@ bool GUIManager::cursor_obstructed() const {
return cursorObstructed;
}
void GUIManager::input_text_key_callback(const InputManager::KeyCallbackArgs& key) {
for(ElementContainer* e : orderedElements)
e->elem->input_text_key_callback(key);
run_post_callback_func();
layout_if_necessary();
}
void GUIManager::input_text_callback(const std::string& str) {
for(ElementContainer* e : orderedElements)
e->elem->input_text_callback(str);
run_post_callback_func();
layout_if_necessary();
}
void GUIManager::input_key_callback(const InputManager::KeyCallbackArgs& key) {
for(ElementContainer* e : orderedElements)
e->elem->input_key_callback(key);