diff options
author | Jacek Antonelli | 2009-04-30 13:04:20 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-04-30 13:07:16 -0500 |
commit | ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e (patch) | |
tree | 8348301d0ac44a524f1819b777686bf086907d76 /linden/indra/newview/llfloaterjoystick.h | |
parent | Second Life viewer sources 1.22.11 (diff) | |
download | meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.zip meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.gz meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.bz2 meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.xz |
Second Life viewer sources 1.23.0-RC
Diffstat (limited to 'linden/indra/newview/llfloaterjoystick.h')
-rw-r--r-- | linden/indra/newview/llfloaterjoystick.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/linden/indra/newview/llfloaterjoystick.h b/linden/indra/newview/llfloaterjoystick.h index 8d729a2..3ce647e 100644 --- a/linden/indra/newview/llfloaterjoystick.h +++ b/linden/indra/newview/llfloaterjoystick.h | |||
@@ -17,7 +17,8 @@ | |||
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | 20 | * online at |
21 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
21 | * | 22 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 23 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 24 | * that you have read and understood your obligations described above, |
@@ -35,6 +36,8 @@ | |||
35 | #include "llfloater.h" | 36 | #include "llfloater.h" |
36 | #include "llstatview.h" | 37 | #include "llstatview.h" |
37 | 38 | ||
39 | class LLCheckBoxCtrl; | ||
40 | |||
38 | class LLFloaterJoystick : public LLFloater, public LLFloaterSingleton<LLFloaterJoystick > | 41 | class LLFloaterJoystick : public LLFloater, public LLFloaterSingleton<LLFloaterJoystick > |
39 | { | 42 | { |
40 | public: | 43 | public: |
@@ -49,16 +52,23 @@ public: | |||
49 | static void setSNDefaults(); | 52 | static void setSNDefaults(); |
50 | 53 | ||
51 | private: | 54 | private: |
55 | static void onCommitJoystickEnabled(LLUICtrl*, void*); | ||
52 | static void onClickRestoreSNDefaults(void*); | 56 | static void onClickRestoreSNDefaults(void*); |
57 | static void onClickCancel(void*); | ||
58 | static void onClickOK(void*); | ||
53 | 59 | ||
54 | private: | 60 | private: |
55 | // Device prefs | 61 | // Device prefs |
62 | bool mJoystickEnabled; | ||
56 | S32 mJoystickAxis[7]; | 63 | S32 mJoystickAxis[7]; |
57 | bool m3DCursor; | 64 | bool m3DCursor; |
58 | bool mAutoLeveling; | 65 | bool mAutoLeveling; |
59 | bool mZoomDirect; | 66 | bool mZoomDirect; |
60 | 67 | ||
61 | // Modes prefs | 68 | // Modes prefs |
69 | bool mAvatarEnabled; | ||
70 | bool mBuildEnabled; | ||
71 | bool mFlycamEnabled; | ||
62 | F32 mAvatarAxisScale[6]; | 72 | F32 mAvatarAxisScale[6]; |
63 | F32 mBuildAxisScale[6]; | 73 | F32 mBuildAxisScale[6]; |
64 | F32 mFlycamAxisScale[7]; | 74 | F32 mFlycamAxisScale[7]; |
@@ -69,6 +79,10 @@ private: | |||
69 | F32 mBuildFeathering; | 79 | F32 mBuildFeathering; |
70 | F32 mFlycamFeathering; | 80 | F32 mFlycamFeathering; |
71 | 81 | ||
82 | // Controls that can disable the flycam | ||
83 | LLCheckBoxCtrl *mCheckJoystickEnabled; | ||
84 | LLCheckBoxCtrl *mCheckFlycamEnabled; | ||
85 | |||
72 | // stats view | 86 | // stats view |
73 | LLStatView* mAxisStatsView; | 87 | LLStatView* mAxisStatsView; |
74 | LLStat* mAxisStats[6]; | 88 | LLStat* mAxisStats[6]; |