Listing 2 (GetTouch.h)

/*-------------------------------------------------*
 *                                                 *
 * Module:    GetTouch.h                           *
 * Purpose:   Header file for GetTouch.c           *
 * Author:    W. Harvey Gray                       *
 * Compiler:  Microsoft 5.0                        *
 *                                                 *
 *                                                 *
 * Copyright 1992, W. Harvey Gray. May be used     *
 *   freely, if authorship and publication are     *
 *   acknowledged.                                 *
 *                                                 *
 *-------------------------------------------------*/

/*-------------------------------------------------*
 *                struct defines                   *
 *-------------------------------------------------*/

struct touchit {    /* struct for touch information */

   int        xcen;         /* X centroid of touch */
   int        ycen;         /* Y centroid of touch */
   int        n;         /* Number of touch points */
   boolean    button;            /* Is it a button */
};
struct touchxy {     /* struct for touch point data */
   
   int        xt;   /* X coordinate of touch point */
   int        yt;   /* Y coordinate of touch point */
   boolean    ut;             /* Untouch indicator */
};

/*--------------------------------------------------*
 *                extern prototypes                 *
 *--------------------------------------------------*/

extern struct touchit *TouchInfo( void );

extern struct touchxy *GetTouch( boolean * );

extern void InitializeTouch( void );
extern void ReplayTouch( boolean );
extern void SetButtonRadius( int );

/* End of File. */