Commit 09a5ea9b authored by Sean McBride's avatar Sean McBride

Use new 10.12 constant name (NSEventTypeFlagsChanged)

Added backwards compatible names for older SDKs
parent 079176ad
Pipeline #22555 passed with stage
......@@ -233,7 +233,7 @@ static const char *vtkMacKeyCodeToKeySymTable[128] = {
keySym = vtkMacCharCodeToKeySymTable[charCode];
}
}
else if (type == NSFlagsChanged)
else if (type == NSEventTypeFlagsChanged)
{
// Check to see what modifier flag changed.
if (controlDown != interactor->GetControlKey())
......
......@@ -50,6 +50,7 @@ PURPOSE. See the above copyright notice for more information.
#define NSEventTypeKeyDown NSKeyDown
#define NSEventTypeKeyUp NSKeyUp
#define NSEventTypeApplicationDefined NSApplicationDefined
#define NSEventTypeFlagsChanged NSFlagsChanged
#endif
// Create handy #defines that indicate the Objective-C memory management model.
......
......@@ -234,7 +234,7 @@ static const char *vtkMacKeyCodeToKeySymTable[128] = {
keySym = vtkMacCharCodeToKeySymTable[charCode];
}
}
else if (type == NSFlagsChanged)
else if (type == NSEventTypeFlagsChanged)
{
// Check to see what modifier flag changed.
if (controlDown != interactor->GetControlKey())
......
......@@ -50,6 +50,7 @@ PURPOSE. See the above copyright notice for more information.
#define NSEventTypeKeyDown NSKeyDown
#define NSEventTypeKeyUp NSKeyUp
#define NSEventTypeApplicationDefined NSApplicationDefined
#define NSEventTypeFlagsChanged NSFlagsChanged
#endif
// Create handy #defines that indicate the Objective-C memory management model.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment