summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerinput.h
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-07-15 20:28:26 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-07-15 21:24:22 +0300
commite7563ff13fe1e6e77a0c6de5dcf0c1b67a6d2e2c (patch)
tree8e003b78518f1b654f1eac03fd4958f051f356be /indra/newview/llviewerinput.h
parent48921a62322bd4eae17d1085256693aa66041dbd (diff)
SL-443 Keybindings: Backward compatibility #2
Diffstat (limited to 'indra/newview/llviewerinput.h')
-rw-r--r--indra/newview/llviewerinput.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/newview/llviewerinput.h b/indra/newview/llviewerinput.h
index 5340ec5fd0..b0c53b23ee 100644
--- a/indra/newview/llviewerinput.h
+++ b/indra/newview/llviewerinput.h
@@ -31,7 +31,8 @@
#include "llinitparam.h"
const S32 MAX_KEY_BINDINGS = 128; // was 60
-const std::string script_mouse_handler_name = "sript_trigger_lbutton";
+const S32 keybindings_xml_version = 1;
+const std::string script_mouse_handler_name = "script_trigger_lbutton";
class LLNamedFunction
{
@@ -101,7 +102,7 @@ public:
third_person,
sitting,
edit_avatar;
- Optional<U32> version;
+ Optional<S32> xml_version; // 'xml', because 'version' appears to be reserved
Keys();
};
@@ -125,8 +126,8 @@ public:
BOOL handleMouse(LLWindow *window_impl, LLCoordGL pos, MASK mask, EMouseClickType clicktype, BOOL down);
void scanMouse();
- bool isMouseBindUsed(const EMouseClickType mouse, const MASK mask, const S32 mode);
- bool isLMouseHandlingDefault(const S32 mode) { return mLMouseDefaultHandling[mode]; }
+ bool isMouseBindUsed(const EMouseClickType mouse, const MASK mask, const S32 mode) const;
+ bool isLMouseHandlingDefault(const S32 mode) const { return mLMouseDefaultHandling[mode]; }
private:
bool scanKey(const std::vector<LLKeyboardBinding> &binding,