From a3f3ab7e113e44309461b26399d627814f0ce4f9 Mon Sep 17 00:00:00 2001 From: Steven Bennetts Date: Thu, 17 Apr 2008 02:56:14 +0000 Subject: QAR-449 Viewer 1.20 RC 1 merge Branch_1-20-Viewer -r 84432 : 84760 -> release --- indra/newview/llviewerjoystick.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'indra/newview/llviewerjoystick.h') diff --git a/indra/newview/llviewerjoystick.h b/indra/newview/llviewerjoystick.h index 47acf17f17..625debb923 100644 --- a/indra/newview/llviewerjoystick.h +++ b/indra/newview/llviewerjoystick.h @@ -53,9 +53,10 @@ typedef enum e_joystick_driver_state class LLViewerJoystick : public LLSingleton { public: - static bool sOverrideCamera; + LLViewerJoystick(); + virtual ~LLViewerJoystick(); - void init(); + void init(bool autoenable); void updateStatus(); void scanJoystick(); void moveObjects(bool reset = false); @@ -68,11 +69,14 @@ public: void setNeedsReset(bool reset = true) { mResetFlag = reset; } void setCameraNeedsUpdate(bool b) { mCameraUpdated = b; } bool getCameraNeedsUpdate() const { return mCameraUpdated; } - - LLViewerJoystick(); - virtual ~LLViewerJoystick(); + bool getOverrideCamera() { return mOverrideCamera; } + void setOverrideCamera(bool val); + bool toggleFlycam(); + void setSNDefaults(); + std::string getDescription(); protected: + void updateEnabled(bool autoenable); void terminate(); void agentSlide(F32 inc); void agentPush(F32 inc); @@ -93,6 +97,8 @@ private: bool mResetFlag; F32 mPerfScale; bool mCameraUpdated; + bool mOverrideCamera; + static F32 sLastDelta[7]; static F32 sDelta[7]; }; -- cgit v1.2.3