#ifndef _WGTJOY__
#define _WGTJOY_

  
/*  WordUp Graphics Toolkit V4.5  Joystick Routines
   Copyright 1996 Egerter Software              */

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
    short x, y;
    short cenx, ceny;             // centre x and y
    short minxrange, minyrange;   // range - the middle
    short maxxrange, maxyrange;   // range + the middle
    short port, buttons;          // port number, and button info
    short scale;                  // coordinate scaling
    } joystick;

short	wcalibratejoystick (joystick *joy1, joystick *joy2);
short   wcheckjoystick (void);
void    winitjoystick (joystick *joy1, joystick *joy2);
short   wreadjoystick (joystick *joy1, joystick *joy2);
#ifdef __cplusplus
}
#endif

#endif

