CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

inpnames.h

Go to the documentation of this file.
00001 /*
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 __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__
00115 

Generated for Crystal Space by doxygen 1.2.14