llfloaterjoystick.h

Go to the documentation of this file.
00001 
00032 #ifndef LL_LLFLOATERJOYSTICK_H
00033 #define LL_LLFLOATERJOYSTICK_H
00034 
00035 #include "llfloater.h"
00036 #include "llstatview.h"
00037 
00038 class LLFloaterJoystick : public LLFloater, public LLFloaterSingleton<LLFloaterJoystick >
00039 {
00040 public:
00041         LLFloaterJoystick(const LLSD& data);
00042         virtual ~LLFloaterJoystick();
00043 
00044         virtual BOOL postBuild();
00045         virtual void refresh();
00046         virtual void apply();   // Apply the changed values.
00047         virtual void cancel();  // Cancel the changed values.
00048         virtual void draw();
00049         static  void setSNDefaults();
00050 
00051 private:
00052         static void onClickRestoreSNDefaults(void*);
00053 
00054 private:
00055         // Device prefs
00056         S32 mJoystickAxis[7];
00057         bool m3DCursor;
00058         bool mAutoLeveling;
00059         bool mZoomDirect;
00060 
00061         // Modes prefs
00062         F32 mAvatarAxisScale[6];
00063         F32 mBuildAxisScale[6];
00064         F32 mFlycamAxisScale[7];
00065         F32 mAvatarAxisDeadZone[6];
00066         F32 mBuildAxisDeadZone[6];
00067         F32 mFlycamAxisDeadZone[7];
00068         F32 mAvatarFeathering;
00069         F32 mBuildFeathering;
00070         F32 mFlycamFeathering;
00071 
00072         // stats view 
00073         LLStatView*             mAxisStatsView;
00074         LLStat*                 mAxisStats[6];
00075         LLStatBar*              mAxisStatsBar[6];
00076 };
00077 
00078 #endif

Generated on Fri May 16 08:33:28 2008 for SecondLife by  doxygen 1.5.5