-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathConsole_io.h
More file actions
37 lines (28 loc) · 833 Bytes
/
Copy pathConsole_io.h
File metadata and controls
37 lines (28 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#include "main.h"
#include "Console.h"
#include "T2Input.h"
#ifdef __cplusplus
extern "C" {
#endif
extern int scr_w;
extern int scr_h;
extern int vmstate;
void console_char_in(char ch);
void console_str_in(const char* str);
void console_str_with_length_in(const char* str, int length);
void console_char_out(char ch);
void console_str_out(const char* str);
void console_str_with_length_out(const char* str, int length);
void terminal_init();
void t2input_draw(VMUINT8* layerbuf1);
void set_layer_handler(VMUINT8* layerbuf0, VMUINT8* layerbuf1, VMINT layerhdl);
void t2input_handle_keyevt(int event, int keycode);
void t2input_handle_penevt(int event, int x, int y);
extern fifo_t serial_in;
void save_state();
void load_state();
void load_man();
#ifdef __cplusplus
}
#endif