summaryrefslogtreecommitdiff
path: root/indra/llwindow/llkeyboardmacosx.h
diff options
context:
space:
mode:
authorsimon <none@none>2013-09-09 12:59:17 -0700
committersimon <none@none>2013-09-09 12:59:17 -0700
commite7ac4695e31821118dd1bc9ddc95f46f012abbda (patch)
treef971732dddf9173d5a9a75163f5e8312a3d5054a /indra/llwindow/llkeyboardmacosx.h
parent36dea0dad802158a0e546220163f4461fbd3e204 (diff)
parent55ae6a7962cdc9a9d7d087fbc529d30db9c37013 (diff)
Merge viewer-release
Diffstat (limited to 'indra/llwindow/llkeyboardmacosx.h')
-rwxr-xr-xindra/llwindow/llkeyboardmacosx.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/llwindow/llkeyboardmacosx.h b/indra/llwindow/llkeyboardmacosx.h
index f09ff720ce..f9d014ab70 100755
--- a/indra/llwindow/llkeyboardmacosx.h
+++ b/indra/llwindow/llkeyboardmacosx.h
@@ -29,6 +29,15 @@
#include "llkeyboard.h"
+// These more or less mirror their equivalents in NSEvent.h.
+enum EMacEventKeys {
+ MAC_SHIFT_KEY = 1 << 17,
+ MAC_CTRL_KEY = 1 << 18,
+ MAC_ALT_KEY = 1 << 19,
+ MAC_CMD_KEY = 1 << 20,
+ MAC_FN_KEY = 1 << 23
+};
+
class LLKeyboardMacOSX : public LLKeyboard
{
public:
@@ -40,6 +49,7 @@ public:
/*virtual*/ void resetMaskKeys();
/*virtual*/ MASK currentMask(BOOL for_mouse_event);
/*virtual*/ void scanKeyboard();
+ /*virtual*/ void handleModifier(MASK mask);
protected:
MASK updateModifiers(const U32 mask);