Page principale   Liste des namespaces   Hiérarchie des classes   Liste par ordre alphabétique   Liste des composants   Liste des fichiers   Composants   Déclarations  

ExManagerInputGLUT.h

Aller à la documentation de ce fichier.
00001 /*
00002  * ExNihilo 3D Engine
00003  * 
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU Library General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  *
00018  * Please read AUTHORS file !!!
00019  * 
00020  * $Id: ExManagerInputGLUT.h,v 1.2 2002/08/01 18:45:56 data Exp $
00021  *
00022  */
00023 
00024 #ifndef __EXMANAGERINPUTGLUT_H__
00025 #define __EXMANAGERINPUTGLUT_H__
00026 //--------------------------------
00027 // File to include
00028 //--------------------------------
00029 #include "ExDefine.h"
00030 #include "ExMath.h"
00031 #include "ExManagerCommand.h"
00032 #include "InputActionList.h"
00033 //--------------------------------
00034 class ExManagerInputGLUT
00035 {
00036 private:
00037 //--------------------------------
00038 // Variable
00039 //--------------------------------
00040         ExManagerCommand                        *ManagerCommand;
00041 
00042 
00043         bool m_Keyboard;
00044         bool m_Mouse;
00045         bool m_SpaceBall;
00046         bool m_Tablet;
00047         bool m_Joystick;
00048         int m_MouseNumberButtons;
00049         int m_SpaceBallNumberButtons;
00050         int m_TabletNumberButtons;
00051         int m_JoystickNumberButtons;
00052         int m_JoystickNumberAxes;
00053 public:
00054 //--------------------------------
00055 // Constructor // Destructor
00056 //--------------------------------
00057         ExManagerInputGLUT(void);
00058         ~ExManagerInputGLUT(void);
00059 //--------------------------------
00060 // Methode
00061 //--------------------------------
00062         std::ostrstream *Consol;
00063         void (*WriteToConsol)(const char *Label);
00064 
00065         inline void SetManagerCommand(ExManagerCommand *Command){ManagerCommand = Command;}
00066 //------------------------------------------
00067 //Ask for Hardware Methode
00068 //------------------------------------------    
00069         inline bool IsKeyboard(void)    {return m_Keyboard;};
00070         inline bool IsMouse(void)               {return m_Mouse;};
00071         inline bool IsSpaceBall(void)   {return m_SpaceBall;};
00072         inline bool IsTablet(void)              {return m_Tablet;};
00073         inline bool IsJoystick(void)    {return m_Joystick;};
00074         void CheckInput(void);
00075         void DisplayAviableInput(void);
00076 //-----------------------------------------
00077 //Keyboard function
00078 //-----------------------------------------
00079         void Key                (unsigned char key,int x,int y);
00080         void KeyUp              (unsigned char key, int x, int y);
00081         void KeySpe             (int key,int x,int y);                  
00082         void KeySpeUp   (int key, int x, int y);
00083 //-----------------------------------------
00084 //Mouse Function
00085 //-----------------------------------------
00086         void Mouse                              (int button, int state, int x, int y);
00087         void MouseMotion                (int x, int y);
00088         void MousePassiveMotion (int x, int y);
00089         void Focus                              (int state);
00090 //-----------------------------------------
00091 //SpaceBall Function
00092 //-----------------------------------------
00093         void SpaceballMotion(int x, int y, int z);
00094         void SpaceballRotate(int x, int y, int z);
00095 //-----------------------------------------
00096 //Tablet Function
00097 //-----------------------------------------
00098         void TabletMotion(int x, int y); 
00099         void TabletButton(int button, int state, int x, int y);
00100 //-----------------------------------------
00101 //joystik Function
00102 //-----------------------------------------
00103 };
00104 #endif //__EXMANAGERINPUTGLUT_H__

Généré le Tue Aug 6 20:25:29 2002 pour ExNihilo par doxygen1.2.17