home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Zone / VRZONE.ISO / mac / PC / PCGLOVE / RACBALL / RACBALL.EXE / SOURCE.EXE / USERINT.H < prev    next >
C/C++ Source or Header  |  1992-09-06  |  1KB  |  33 lines

  1. /* Header file for user-interface routines */
  2.  
  3. /* Written by Bernie Roehl, January 1992 (broehl@sunee.waterloo.edu) */
  4.  
  5. /* Copyright 1992 by Dave Stampe and Bernie Roehl.
  6.    May be freely used to write software for release into the public domain;
  7.    all commercial endeavours MUST contact Bernie Roehl and Dave Stampe
  8.    for permission to incorporate any part of this software into their
  9.    products!
  10.  */
  11.  
  12. typedef struct { 
  13.     int x, y, buttons;
  14.     int cenx, ceny;
  15.     int xrange, yrange;
  16.     long scale; /* maximum acceptable returned value for X and Y */
  17.     int port;  /* port number, 0 or 1; -1 means 'unused' */
  18.     } joystick_data;
  19.  
  20. extern int joystick_check();
  21. extern void joystick_init(joystick_data *joy, int port);
  22. extern int joystick_read(joystick_data *joystick);
  23. extern void joystick_quit();
  24. extern void joystick_setscale(joystick_data *joy, int value);
  25. extern void joystick_scale(joystick_data *joy, int dir);
  26. extern void neatbox(int w, int h, int *x, int *y);
  27. extern void poptext(char *text[]);
  28. extern void popmsg(char *msg);
  29. extern unsigned askfor(char *prompt, char *buff, int n);
  30. extern int menu(char *text[]);
  31.  
  32. /* End of userint.h */
  33.