#ifndef TABLET_H
#define TABLET_H

#define TABLET_FILE "/dev/ttyS0"

extern int tablet_fd;
extern int tablet_x, tablet_y;
extern int tablet_button, tablet_touch, tablet_pressure;

	/* open the tablet, returns 1 for success */
int tablet_init(void);
	/* perform one read() on the tablet, returns num packets read */
int tablet_read(void);
	/* register a callback that is called when tablet_* vars update */
void tablet_register(void (*func)(void));
	/* close the tablet */
void tablet_close(void);

#endif /* TABLET_H */
