home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / source / crend5 / userint.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-20  |  1.2 KB  |  35 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 unsigned int getkey(void);
  21. extern int joystick_check(void);
  22. extern void joystick_init(joystick_data *joy, int port);
  23. extern int joystick_read(joystick_data *joystick);
  24. extern void joystick_quit(void);
  25. extern void joystick_setscale(joystick_data *joy, int value);
  26. extern void joystick_scale(joystick_data *joy, int dir);
  27. extern int mouse_joy(joystick_data *joy);
  28. extern void neatbox(int w, int h, int *x, int *y);
  29. extern void poptext(char *text[]);
  30. extern void popmsg(char *msg);
  31. extern unsigned askfor(char *prompt, char *buff, int n);
  32. extern int menu(char *text[]);
  33.  
  34. /* End of userint.h */
  35.