Move input handling into the Terminal node

Former-commit-id: d64800229f
This commit is contained in:
Leroy Hopson 2020-09-24 17:29:19 +07:00
parent 9d06d7c313
commit 5e33e560f1
6 changed files with 223 additions and 74 deletions

View file

@ -34,6 +34,7 @@ namespace godot
private:
static const uint8_t default_color_palette[TSM_COLOR_NUM][3];
static const std::map<std::pair<int64_t, int64_t>, uint32_t> keymap;
Vector2 cell_size;
std::map<int, Color> palette = {};
@ -54,7 +55,7 @@ namespace godot
void _init();
void _ready();
void _notification(int what);
void _input(Variant event);
void _gui_input(Variant event);
void _draw();
void write(PoolByteArray bytes);