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

Turntables.h

Go to the documentation of this file.
00001 
00010 #ifndef __TURNTABLES_H__
00011 #define __TURNTABLES_H__
00012 
00013 #include "Joystick.h"
00014 
00015 #define NUM_TURNTABLES  4
00016 #define MAX_JOYSTICKS   2
00017 
00018 #define TURNING_CLOCKWISE       true
00019 #define TURNING_ANTICLOCKWISE   false
00020 
00025 class Turntables
00026 {
00027 public:
00029     Turntables();
00030 
00032     ~Turntables();
00033 
00039     bool Init();
00040 
00046     void Shutdown();
00047 
00053     void Poll();
00054 
00055 private:
00056     Joystick *      joysticks[MAX_JOYSTICKS];
00057     unsigned int    numJoysticks;
00058     unsigned int    oldStates[NUM_TURNTABLES];
00059 
00060     void AnnounceTurn(unsigned int turntableID, bool direction);
00061 };
00062 
00063 #endif /* __TURNTABLES_H__ */

Generated on Mon Mar 4 08:42:23 2002 for Aria by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002