diff options
author | andreykproductengine <andreykproductengine@lindenlab.com> | 2019-09-26 22:28:18 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2020-06-23 14:48:03 +0300 |
commit | 2532a2ee9ee9003e2c6b72f8da19979a9e3dd2f6 (patch) | |
tree | 73205ed8bedfc5855082205ee5334d7e06f45d80 /indra/newview/llviewerkeyboard.h | |
parent | 4ae2165c4516a74012d30610b4c53de6d3ccaf90 (diff) |
SL-6109 Conflict resolution
Diffstat (limited to 'indra/newview/llviewerkeyboard.h')
-rw-r--r-- | indra/newview/llviewerkeyboard.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/newview/llviewerkeyboard.h b/indra/newview/llviewerkeyboard.h index 10b16e5fa0..02fa21d4f2 100644 --- a/indra/newview/llviewerkeyboard.h +++ b/indra/newview/llviewerkeyboard.h @@ -115,14 +115,16 @@ public: BOOL handleKey(KEY key, MASK mask, BOOL repeated); BOOL handleKeyUp(KEY key, MASK mask); - S32 loadBindings(const std::string& filename); // returns number bound, 0 on error S32 loadBindingsXML(const std::string& filename); // returns number bound, 0 on error EKeyboardMode getMode() const; BOOL modeFromString(const std::string& string, S32 *mode) const; // False on failure BOOL mouseFromString(const std::string& string, EMouseClickType *mode) const;// False on failure - void scanKey(KEY key, BOOL key_down, BOOL key_up, BOOL key_level) const; + bool scanKey(KEY key, + BOOL key_down, + BOOL key_up, + BOOL key_level) const; // handleMouse() records state, scanMouse() goes through states, scanMouse(click) processes individual saved states after UI is done with them BOOL handleMouse(LLWindow *window_impl, LLCoordGL pos, MASK mask, EMouseClickType clicktype, BOOL down); @@ -163,6 +165,10 @@ private: // This way with W+ignore defined to 'forward' and with ctrl+W tied to camera, // pressing undefined Shift+W will do 'forward', yet ctrl+W will do 'camera forward' // With A defined to 'turn', shift+A defined to strafe, pressing Shift+W+A will do strafe+forward + + // TODO: at some point it is better to remake this, especially keyaboard part + // would be much better to send to functions actual state of the button than + // to send what we think function wants based on collection of bools (mKeyRepeated, mKeyLevel, mKeyDown) S32 mKeyBindingCount[MODE_COUNT]; S32 mKeyIgnoreMaskCount[MODE_COUNT]; S32 mMouseBindingCount[MODE_COUNT]; |