aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llwindow/llkeyboard.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llwindow/llkeyboard.h
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/llwindow/llkeyboard.h')
-rw-r--r--linden/indra/llwindow/llkeyboard.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/llwindow/llkeyboard.h b/linden/indra/llwindow/llkeyboard.h
index d9ce376..4d0b86d 100644
--- a/linden/indra/llwindow/llkeyboard.h
+++ b/linden/indra/llwindow/llkeyboard.h
@@ -107,9 +107,9 @@ public:
107 EKeyboardInsertMode getInsertMode() { return mInsertMode; } 107 EKeyboardInsertMode getInsertMode() { return mInsertMode; }
108 void toggleInsertMode(); 108 void toggleInsertMode();
109 109
110 static BOOL maskFromString(const LLString& str, MASK *mask); // False on failure 110 static BOOL maskFromString(const std::string& str, MASK *mask); // False on failure
111 static BOOL keyFromString(const LLString& str, KEY *key); // False on failure 111 static BOOL keyFromString(const std::string& str, KEY *key); // False on failure
112 static LLString stringFromKey(KEY key); 112 static std::string stringFromKey(KEY key);
113 113
114 e_numpad_distinct getNumpadDistinct() { return mNumpadDistinct; } 114 e_numpad_distinct getNumpadDistinct() { return mNumpadDistinct; }
115 void setNumpadDistinct(e_numpad_distinct val) { mNumpadDistinct = val; } 115 void setNumpadDistinct(e_numpad_distinct val) { mNumpadDistinct = val; }
@@ -119,7 +119,7 @@ public:
119 S32 getKeyElapsedFrameCount( KEY key ); // Returns time in frames since key was pressed. 119 S32 getKeyElapsedFrameCount( KEY key ); // Returns time in frames since key was pressed.
120 120
121protected: 121protected:
122 void addKeyName(KEY key, const LLString& name); 122 void addKeyName(KEY key, const std::string& name);
123 123
124protected: 124protected:
125 std::map<U16, KEY> mTranslateKeyMap; // Map of translations from OS keys to Linden KEYs 125 std::map<U16, KEY> mTranslateKeyMap; // Map of translations from OS keys to Linden KEYs
@@ -139,8 +139,8 @@ protected:
139 139
140 EKeyboardInsertMode mInsertMode; 140 EKeyboardInsertMode mInsertMode;
141 141
142 static std::map<KEY,LLString> sKeysToNames; 142 static std::map<KEY,std::string> sKeysToNames;
143 static std::map<LLString,KEY> sNamesToKeys; 143 static std::map<std::string,KEY> sNamesToKeys;
144}; 144};
145 145
146extern LLKeyboard *gKeyboard; 146extern LLKeyboard *gKeyboard;