• Main Page
  • Namespaces
  • Classes
  • Files
  • File List

wit.h

Go to the documentation of this file.
00001 #ifndef WIT_H
00002 #define WIT_H
00003 
00004 namespace wit {
00005 
00010 enum AppFeatures {
00011     NoFeatures = 0,         
00012     UseWiiRemote = 1,       
00013     UseGameCube = 2,        
00014     UseSound = 4,           
00015     UseFAT = 8,             
00016     UseGX = 16,             
00017     UseConsole = 32,        
00018     UseJoysticks = 64,      
00019     UsePointer = 128,       
00020     UseMotion = 256,        
00021     UseDoubleBuffer = 512,  
00022     AllFeatures =           
00023         UseWiiRemote | UseGameCube | UseSound | UseFAT | UseGX | UseConsole | UseJoysticks | UsePointer | UseMotion | UseDoubleBuffer
00024 };
00025 
00026 enum ShutdownMode {
00027     Shutdown_Auto,       
00028     Shutdown_Idle,       
00029     Shutdown_Standby     
00030 };
00031 
00032 enum Button {
00033     Button_None = 0,    
00034     Button_Up,          
00035     Button_Down,        
00036     Button_Left,        
00037     Button_Right,       
00038     Button_1,           
00039     Button_2,           
00040     Button_A,           
00041     Button_B,           
00042     Button_C,           
00043     Button_X,           
00044     Button_Y,           
00045     Button_Z,           
00046     Button_ZL,          
00047     Button_ZR,          
00048     Button_LClick,      
00049     Button_RClick,      
00050     Button_Minus,       
00051     Button_Plus,        
00052     Button_Home,        
00053     Button_Start,       
00054     Button_Max,         
00055     Button_Yellow = Button_1,   
00056     Button_Green  = Button_2,   
00057     Button_Blue   = Button_A,   
00058     Button_Red    = Button_B,   
00059     Button_Orange = Button_C    
00060 };
00061 
00062 enum Controller {
00063     WiiRemote,      
00064     Nunchuk,        
00065     Classic,        
00066     Guitar,         
00067     BalanceBoard,   
00068     GameCube        
00069 };
00070 
00071 enum AnalogButton {
00072     Analog_Left,     
00073     Analog_Right,    
00074     Analog_A,        
00075     Analog_B,        
00076     Analog_Whammy = Analog_Left   
00077 };
00078 
00079 
00085 template <typename T>
00086 inline T witAbs(T n) { return (n < 0) ? -n : n; }
00087 
00088 }
00089 
00090 using wit::witAbs;
00091 
00092 #ifdef WIT_USE_QT
00093 #   ifdef WIT_QT_BUILD
00094 #       include "wit_qt.h"
00095 #   else
00096 #       include <wit/wit_qt.h>
00097 #   endif
00098 #endif
00099 
00100 #endif

Generated on Sat Sep 3 2011 10:25:00 for wit by  doxygen 1.7.2