diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-07-05 20:37:39 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-07-05 20:37:39 +0800 |
commit | be75d0eba7ff0a29573139aee593debba81cc65d (patch) | |
tree | 2545f54e724b38702be6876e3b0ee4948bf64d25 /indra/llwindow/llkeyboard.cpp | |
parent | 6814c077701786f9d69e9f5c0f78ed496a3122cf (diff) | |
parent | 6369047dcb74323b248de59bc8187db0d315548a (diff) |
Merge branch 'main' into webrtc-voice
Diffstat (limited to 'indra/llwindow/llkeyboard.cpp')
-rw-r--r-- | indra/llwindow/llkeyboard.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/llwindow/llkeyboard.cpp b/indra/llwindow/llkeyboard.cpp index b3dcac6222..e93ad28fdf 100644 --- a/indra/llwindow/llkeyboard.cpp +++ b/indra/llwindow/llkeyboard.cpp @@ -195,9 +195,15 @@ void LLKeyboard::resetKeys() } +#if LL_SDL +BOOL LLKeyboard::translateKey(const U32 os_key, KEY *out_key) +{ + std::map<U32, KEY>::iterator iter; +#else BOOL LLKeyboard::translateKey(const U16 os_key, KEY *out_key) { std::map<U16, KEY>::iterator iter; +#endif // Only translate keys in the map, ignore all other keys for now iter = mTranslateKeyMap.find(os_key); @@ -215,9 +221,15 @@ BOOL LLKeyboard::translateKey(const U16 os_key, KEY *out_key) } +#if LL_SDL +U32 LLKeyboard::inverseTranslateKey(const KEY translated_key) +{ + std::map<KEY, U32>::iterator iter; +#else U16 LLKeyboard::inverseTranslateKey(const KEY translated_key) { std::map<KEY, U16>::iterator iter; +#endif iter = mInvTranslateKeyMap.find(translated_key); if (iter == mInvTranslateKeyMap.end()) { |