diff options
author | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
commit | ce28e056c20bf2723f565bbf464b87781ec248a2 (patch) | |
tree | ef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llfloaterjoystick.h | |
parent | Second Life viewer sources 1.19.1.4b (diff) | |
download | meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2 meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz |
Second Life viewer sources 1.20.2
Diffstat (limited to 'linden/indra/newview/llfloaterjoystick.h')
-rw-r--r-- | linden/indra/newview/llfloaterjoystick.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterjoystick.h b/linden/indra/newview/llfloaterjoystick.h new file mode 100644 index 0000000..b35b39f --- /dev/null +++ b/linden/indra/newview/llfloaterjoystick.h | |||
@@ -0,0 +1,78 @@ | |||
1 | /** | ||
2 | * @file llfloaterjoystick.h | ||
3 | * @brief Joystick preferences panel | ||
4 | * | ||
5 | * $LicenseInfo:firstyear=2007&license=viewergpl$ | ||
6 | * | ||
7 | * Copyright (c) 2007-2008, Linden Research, Inc. | ||
8 | * | ||
9 | * Second Life Viewer Source Code | ||
10 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
11 | * to you under the terms of the GNU General Public License, version 2.0 | ||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
16 | * | ||
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 | ||
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
21 | * | ||
22 | * By copying, modifying or distributing this software, you acknowledge | ||
23 | * that you have read and understood your obligations described above, | ||
24 | * and agree to abide by those obligations. | ||
25 | * | ||
26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
28 | * COMPLETENESS OR PERFORMANCE. | ||
29 | * $/LicenseInfo$ | ||
30 | */ | ||
31 | |||
32 | #ifndef LL_LLFLOATERJOYSTICK_H | ||
33 | #define LL_LLFLOATERJOYSTICK_H | ||
34 | |||
35 | #include "llfloater.h" | ||
36 | #include "llstatview.h" | ||
37 | |||
38 | class LLFloaterJoystick : public LLFloater, public LLFloaterSingleton<LLFloaterJoystick > | ||
39 | { | ||
40 | public: | ||
41 | LLFloaterJoystick(const LLSD& data); | ||
42 | virtual ~LLFloaterJoystick(); | ||
43 | |||
44 | virtual BOOL postBuild(); | ||
45 | virtual void refresh(); | ||
46 | virtual void apply(); // Apply the changed values. | ||
47 | virtual void cancel(); // Cancel the changed values. | ||
48 | virtual void draw(); | ||
49 | static void setSNDefaults(); | ||
50 | |||
51 | private: | ||
52 | static void onClickRestoreSNDefaults(void*); | ||
53 | |||
54 | private: | ||
55 | // Device prefs | ||
56 | S32 mJoystickAxis[7]; | ||
57 | bool m3DCursor; | ||
58 | bool mAutoLeveling; | ||
59 | bool mZoomDirect; | ||
60 | |||
61 | // Modes prefs | ||
62 | F32 mAvatarAxisScale[6]; | ||
63 | F32 mBuildAxisScale[6]; | ||
64 | F32 mFlycamAxisScale[7]; | ||
65 | F32 mAvatarAxisDeadZone[6]; | ||
66 | F32 mBuildAxisDeadZone[6]; | ||
67 | F32 mFlycamAxisDeadZone[7]; | ||
68 | F32 mAvatarFeathering; | ||
69 | F32 mBuildFeathering; | ||
70 | F32 mFlycamFeathering; | ||
71 | |||
72 | // stats view | ||
73 | LLStatView* mAxisStatsView; | ||
74 | LLStat* mAxisStats[6]; | ||
75 | LLStatBar* mAxisStatsBar[6]; | ||
76 | }; | ||
77 | |||
78 | #endif | ||