00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __CS_UTIL_CSINPUTS_H__
00022 #define __CS_UTIL_CSINPUTS_H__
00023
00032 #define CSAXIS_X -1
00033
00037 #define CSAXIS_Y -2
00038
00039 struct iEvent;
00040 class csEvent;
00041
00047 extern bool csParseInputDef (const char *name, iEvent *ev,
00048 bool use_shift = true);
00049
00053 extern bool csParseInputDef (const char *name, csEvent &ev,
00054 bool use_shift = true);
00055
00061 extern bool csParseKeyDef (const char *name, int &key, int &shift,
00062 bool use_shift = true);
00063
00069 extern bool csParseMouseDef (const char *name, int &button, int &shift,
00070 bool use_shift = true);
00071
00077 extern bool csParseJoystickDef (const char *name, int &button, int &shift,
00078 bool use_shift = true);
00079
00084 extern bool csGetInputDesc (iEvent *ev, char *buf,
00085 bool use_shift = true);
00086
00090 extern bool csGetInputDesc (csEvent &ev, char *buf,
00091 bool use_shift = true);
00092
00097 extern bool csGetKeyDesc (int key, int shift, char *buf,
00098 bool use_shift = true);
00099
00104 extern bool csGetMouseDesc (int button, int shift, char *buf,
00105 bool use_shift = true);
00106
00111 extern bool csGetJoyDesc (int button, int shift, char *buf,
00112 bool use_shift = true);
00113
00114 #endif // __CS_UTIL_CSINPUTS_H__