Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

client/joystick.h

Go to the documentation of this file.
00001 #include <GL/openglut.h>
00002 
00003 //GLUT-GUI code stolen from :
00004 //OpenGLUT Joystick Demonstration
00005 
00006 class Joystick {
00007         static const int MAX_AXES = 3;;
00008         float joystickAxis[MAX_AXES];
00009         int   joystickButtons;
00010         
00011         static const GLfloat light_ambient[];
00012         static const GLfloat light_diffuse[]; 
00013         static const GLfloat light_specular[];
00014         static const GLfloat light_position[];
00015 
00016         static const GLfloat mat_ambient[4];   
00017         static const GLfloat mat_diffuse[4];   
00018         static const GLfloat mat_specular[4];  
00019         static const GLfloat high_shininess[1];
00020 
00021         static const float sf = 2.0f;
00022         float ar;
00023 
00024         void drawButton(int button, int down);
00025         
00026   public:
00027         Joystick(void);
00028 
00029         /* GLUT callback Handlers */
00030         void resize(int width, int height);     
00031         void display(void);     
00032         void joystick(unsigned int buttons, int xaxis, int yaxis, int zaxis);           
00033 };

Generated on Fri Sep 1 14:25:44 2006 for Raptor by  doxygen 1.4.4