X-Git-Url: http://4ch.mooo.com/gitweb/?p=16.git;a=blobdiff_plain;f=16%2Fted5%2FLIB.H;fp=16%2Fted5%2FLIB.H;h=4075871cc18fea1190ff961f070282b7b53436a7;hp=0000000000000000000000000000000000000000;hb=4c15d088479b9b6c4a8b298a9db585bc11582321;hpb=21ff8e5607ba86e91ed0d71f6261fd0fcc676e16 diff --git a/16/ted5/LIB.H b/16/ted5/LIB.H new file mode 100755 index 00000000..4075871c --- /dev/null +++ b/16/ted5/LIB.H @@ -0,0 +1,42 @@ +typedef enum {CGA,EGA1,EGA2,VGA,TEXT} video; +#define ESCOUT 0xdeaf + +void Quit(char *string); +void WaitVBL(int times); +int input(char *string,int max); +void SetupKBD (); +void ShutdownKBD (); +void clearkeys (void); +int MouseInit(void); +void MouseHide(void); +void MouseShow(void); +int MouseButton(void); +void MouseCoords(int *x,int *y); +void printhex(unsigned value); +void printbin(unsigned value); +unsigned inputint(int numchars); +int input(char *string,int max); +void print (const char *str); +void fprint (const char huge *str); +void printhexb(unsigned char value); +void printint(unsigned value); +void bar (int xl, int yl, int xh, int yh, int ch); +int get(void); +void drawwindow (int xl, int yl, int xh, int yh); +void erasewindow (void); +void centerwindow (int width, int height); +void expwin (int width, int height); +void expwinh (int width, int height); +void expwinv (int width, int height); +void SaveFile(char *filename,char huge *buffer, long size,long offset); +unsigned long LoadFile(char *filename,char huge *buffer,long offset,long size); +void LoadIn(char *filename,void _seg **baseptr); + +void MouseOrigin(int x,int y); +void MouseLimits(int xmin,int xmax,int ymin,int ymax); + +extern int win_xl,win_yl,win_xh,win_yh,screencenterx,screencentery; +extern unsigned char keydown[256]; +extern unsigned sx,sy,xormask,MouseStatus,leftedge; + +long filelen(char *filename); \ No newline at end of file