|
inpnames.h00001 /* 00002 Crystal Space input library 00003 Copyright (C) 2000 by Andrew Zabolotny <bit@eltech.ru> 00004 Copyright (C) 2002 by Mathew Sutcliffe <oktal@gmx.co.uk> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public 00017 License along with this library; if not, write to the Free 00018 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 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__ Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000 |