- vg_ui.textbuf_on_up = _vg_console_on_up;
- vg_ui.textbuf_on_down = _vg_console_on_down;
- vg_ui.textbuf_on_change = _vg_console_on_update;
- vg_ui.textbuf_on_enter = _vg_console_on_enter;
+
+ struct ui_textbox_callbacks callbacks = {
+ .up = _vg_console_on_up,
+ .down = _vg_console_on_down,
+ .change = _vg_console_on_update,
+ .enter = _vg_console_on_enter
+ };