/* Tetris I/O function declarations by Ben Hoyt, April 2008 */ #ifndef __TETRIS_H__ #define __TETRIS_H__ /* set things up -- call this first */ void setup(void); /* tear things down -- call this before you exit */ void teardown(void); /* put a square of given colour at zero-based x,y coordinate (colour 0 = erase, colours 1..7 are piece colours, 8 = border colour) */ void putsquare(int x, int y, int colour); /* wait for and return a key char, or return -1 if no key pressed in 50 ms */ int waitkey(void); #endif