]> 4ch.mooo.com Git - 16.git/blob - 16/ted5/LIB.H
ted5 added
[16.git] / 16 / ted5 / LIB.H
1 typedef enum {CGA,EGA1,EGA2,VGA,TEXT} video;
2 #define ESCOUT 0xdeaf
3
4 void Quit(char *string);
5 void WaitVBL(int times);
6 int  input(char *string,int max);
7 void SetupKBD ();
8 void ShutdownKBD ();
9 void clearkeys (void);
10 int  MouseInit(void);
11 void MouseHide(void);
12 void MouseShow(void);
13 int  MouseButton(void);
14 void MouseCoords(int *x,int *y);
15 void printhex(unsigned value);
16 void printbin(unsigned value);
17 unsigned inputint(int numchars);
18 int  input(char *string,int max);
19 void print (const char *str);
20 void fprint (const char huge *str);
21 void printhexb(unsigned char value);
22 void printint(unsigned value);
23 void bar (int xl, int yl, int xh, int yh, int ch);
24 int  get(void);
25 void drawwindow (int xl, int yl, int xh, int yh);
26 void erasewindow (void);
27 void centerwindow (int width, int height);
28 void expwin (int width, int height);
29 void expwinh (int width, int height);
30 void expwinv (int width, int height);
31 void SaveFile(char *filename,char huge *buffer, long size,long offset);
32 unsigned long LoadFile(char *filename,char huge *buffer,long offset,long size);
33 void LoadIn(char *filename,void _seg **baseptr);
34
35 void MouseOrigin(int x,int y);
36 void MouseLimits(int xmin,int xmax,int ymin,int ymax);
37
38 extern int win_xl,win_yl,win_xh,win_yh,screencenterx,screencentery;
39 extern unsigned char keydown[256];
40 extern unsigned sx,sy,xormask,MouseStatus,leftedge;
41
42 long filelen(char *filename);