00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __CSUTIL_CSINPUTS_H__
00022 #define __CSUTIL_CSINPUTS_H__
00023
00028 #define CSAXIS_X -1
00029 #define CSAXIS_Y -2
00030
00031 struct iEvent;
00032 class csEvent;
00033
00039 extern bool csParseInputDef (const char *name, iEvent *ev,
00040 bool use_shift = true);
00041
00042 extern bool csParseInputDef (const char *name, csEvent &ev,
00043 bool use_shift = true);
00044
00045 extern bool csParseKeyDef (const char *name, int &key, int &shift,
00046 bool use_shift = true);
00047
00048 extern bool csParseMouseDef (const char *name, int &button, int &shift,
00049 bool use_shift = true);
00050
00051 extern bool csParseJoystickDef (const char *name, int &button, int &shift,
00052 bool use_shift = true);
00053
00059 extern bool csGetInputDesc (iEvent *ev, char *buf,
00060 bool use_shift = true);
00061
00062 extern bool csGetInputDesc (csEvent &ev, char *buf,
00063 bool use_shift = true);
00064
00065 extern bool csGetKeyDesc (int key, int shift, char *buf,
00066 bool use_shift = true);
00067
00068 extern bool csGetMouseDesc (int button, int shift, char *buf,
00069 bool use_shift = true);
00070
00071 extern bool csGetJoyDesc (int button, int shift, char *buf,
00072 bool use_shift = true);
00073
00074 #endif // __CSUTIL_CSINPUTS_H__