home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Zone
/
VRZONE.ISO
/
mac
/
PC
/
PCGLOVE
/
GLOVE
/
OBJGLV.ZIP
/
INCLUDE
/
DEMO4B
/
USERINT.HPP
< prev
next >
Wrap
Text File
|
1992-10-31
|
1KB
|
33 lines
/* Header file for user-interface routines */
/* Written by Bernie Roehl, January 1992 (broehl@sunee.waterloo.edu) */
/* Copyright 1992 by Dave Stampe and Bernie Roehl.
May be freely used to write software for release into the public domain;
all commercial endeavours MUST contact Bernie Roehl and Dave Stampe
for permission to incorporate any part of this software into their
products!
*/
typedef struct {
int x, y, buttons;
int cenx, ceny;
int xrange, yrange;
long scale; /* maximum acceptable returned value for X and Y */
int port; /* port number, 0 or 1; -1 means 'unused' */
} joystick_data;
int joystick_check();
void joystick_init(joystick_data *joy, int port);
int joystick_read(joystick_data *joystick);
void joystick_quit();
void joystick_setscale(joystick_data *joy, int value);
void joystick_scale(joystick_data *joy, int dir);
void neatbox(int w, int h, int *x, int *y);
void poptext(char *text[]);
void popmsg(char *msg);
unsigned askfor(char *prompt, char *buff, int n);
int menu(char *text[]);
/* End of userint.h */