#ifndef _WGTJOY_
#define _WGTJOY_

/* Include file for the WGT Joystick Routines
   Copyright 1995 Egerter Software */

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
    short x, y;
    short cenx, ceny;
    short xrange, yrange;
    short port, buttons;
    short scale;
    } joystick;

short     wcalibratejoystick (joystick *joy);
short     wcheckjoystick (void);
void      winitjoystick (joystick *joy, short joynum);
short     wreadjoystick (joystick *joy);

#ifdef __cplusplus
}
#endif

#endif
