summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerjoystick.h
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2008-04-17 02:56:14 +0000
committerSteven Bennetts <steve@lindenlab.com>2008-04-17 02:56:14 +0000
commita3f3ab7e113e44309461b26399d627814f0ce4f9 (patch)
tree695b2a41f8d31330634ef59e7d6ece526242fd86 /indra/newview/llviewerjoystick.h
parentd85247e63e5ff0b488211b62429a4895b48dee27 (diff)
QAR-449 Viewer 1.20 RC 1
merge Branch_1-20-Viewer -r 84432 : 84760 -> release
Diffstat (limited to 'indra/newview/llviewerjoystick.h')
-rw-r--r--indra/newview/llviewerjoystick.h16
1 files changed, 11 insertions, 5 deletions
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<LLViewerJoystick>
{
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];
};